Skip to content
Myr

Better workflow for flaskr and other basic apps (#2000)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

- 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)

authored by Kyle Lawlor · committed by Markus Unterwaditzer · parent 5f00937 · Browse files · 2 files+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−1 removed

  • other:+2 added−1 removed

2 files+2 added−1 removed

modified:examples/flaskr/flaskr/__init__.py+1 added
1from flaskr import app
modified:examples/flaskr/README+1 added-1 removed
17 unmodified lines
18 pip install --editable .1920 3. Instruct flask to use the right application2122 export FLASK_APP=flaskr.flaskr22 export FLASK_APP=flaskr2324 4. initialize the database with this command:2526 flask initdb
12 unmodified lines