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)
This commit is contained in:
Kyle Lawlor 2016-08-31 12:37:36 -04:00 committed by Markus Unterwaditzer
parent 5f009374fd
commit b42e43e3b6
2 changed files with 2 additions and 1 deletions

View file

@ -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:

View file

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