Skip to content

Commit

Permalink
Better workflow for flaskr and other basic apps (pallets#2000)
Browse files Browse the repository at this point in the history
- 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)
  • Loading branch information
wgwz authored and untitaker committed Aug 31, 2016
1 parent 5f00937 commit b42e43e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/flaskr/README
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

3. Instruct flask to use the right application

export FLASK_APP=flaskr.flaskr
export FLASK_APP=flaskr

4. initialize the database with this command:

Expand Down
1 change: 1 addition & 0 deletions examples/flaskr/flaskr/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from flaskr import app

0 comments on commit b42e43e

Please sign in to comment.