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 d625d41104
commit 7c40aa9e50
No known key found for this signature in database
GPG key ID: 36848B262DF5F06C
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!"

View file

@ -0,0 +1 @@
from hello import app