Browse Source

Better workflow for flaskr and other basic apps (#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)
reviewable/pr2002/r1
Kyle Lawlor 8 years ago committed by Markus Unterwaditzer
parent
commit
b42e43e3b6
  1. 2
      examples/flaskr/README
  2. 1
      examples/flaskr/flaskr/__init__.py

2
examples/flaskr/README

@ -19,7 +19,7 @@
3. Instruct flask to use the right application 3. Instruct flask to use the right application
export FLASK_APP=flaskr.flaskr export FLASK_APP=flaskr
4. initialize the database with this command: 4. initialize the database with this command:

1
examples/flaskr/flaskr/__init__.py

@ -0,0 +1 @@
from flaskr import app
Loading…
Cancel
Save