1from flask import Flask
2from flask import render_template
3app = Flask(__name__)
4
5@app.route('/')
6def index():
7 return render_template("index.html") #if you want to render a .html file,
8 # import render_template from flask and use
9 #render_template("index.html") here.
10
11if __name__ == '__main__':
12 app.debug = True
13 app.run() #go to http://127.0.0.1:5000/ to view the page.