from flask import Flask, render_template
@app.route('/my_page')
def returnHTML():
return render_template('my_page.html')
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def index():
return render_template('index.html') # You have to save the html files
# inside of a 'templates' folder.
app.run(debug=True)