forked from orbit-oss/flask
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:
parent
5f009374fd
commit
b42e43e3b6
2 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
from flaskr import app
|
||||
Loading…
Add table
Add a link
Reference in a new issue