# save this as app.py
from flask import Flask, escape, request
app = Flask(__name__)
@app.route('/')
def hello():
name = request.args.get("name", "World")
return f'Hello, {escape(name)}!'
# twitter : @MasudSha_
# @MasudShah
>>> from yourapp import create_app
>>> app = create_app()
>>> app.app_context().push()