Flask demo: hello world
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/', methods=['GET'])
def index():
return render_template('index.html')
@app.route("/hello")
def hello():
return "Welcome to Python Flask App!"
if __name__ == "__main__":
app.run()