Flaskr, from the official tutorial of Flask documentation.
Unlike the example found in Flask sources, it does not make use of Blueprint that are not introduced in the tutorial).
http://flask.pocoo.org/docs/0.12/tutorial/folders/#tutorial-folders
Like the tutorial, user name is admin
and password is default
.
Creates and activate your virtual environment, then:
env\Scripts\activate.bat
pip install --editable .
set FLASK_APP=flaskr
set FLASK_DEBUG=true
flask initdb
flask run
Runs the manage.py
script from your IDE as if it was the flask command above.
This script invokes the flask command after setting the environment variable.
So, for example in PyCharm, set:
Script
to the full path ofmanage.py
Script parameters
torun
(orinitdb
to initialize the database)