Skip to content

Commit b42e43e

Browse files
wgwzuntitaker
authored andcommitted
Better workflow for flaskr and other basic apps (pallets#2000)
- adds `from flaskr import app` to top-level in flaskr module - effect is that `export FLASK_APP=flaskr` works over the more verbose `export FLASK_APP=flaskr.flask` - see the readme for how to run - all tests are passing with `py.test` or `python setup.py test` (in venv)
1 parent 5f00937 commit b42e43e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/flaskr/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
3. Instruct flask to use the right application
2121

22-
export FLASK_APP=flaskr.flaskr
22+
export FLASK_APP=flaskr
2323

2424
4. initialize the database with this command:
2525

examples/flaskr/flaskr/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from flaskr import app

0 commit comments

Comments
 (0)