Import app from wsgi.py or app.py if FLASK_APP is not defined

Fixes #2376
This commit is contained in:
Miguel Grinberg 2017-06-15 11:27:50 -07:00
parent b4922beddf
commit ce78369f37
4 changed files with 48 additions and 10 deletions

View file

@ -0,0 +1,6 @@
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"