Import app from wsgi.py or app.py if FLASK_APP is not defined
Fixes #2376
This commit is contained in:
parent
d625d41104
commit
7c40aa9e50
4 changed files with 48 additions and 10 deletions
6
tests/test_apps/helloworld/hello.py
Normal file
6
tests/test_apps/helloworld/hello.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
from flask import Flask
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route("/")
|
||||
def hello():
|
||||
return "Hello World!"
|
||||
1
tests/test_apps/helloworld/wsgi.py
Normal file
1
tests/test_apps/helloworld/wsgi.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
from hello import app
|
||||
Loading…
Add table
Add a link
Reference in a new issue