Add in a fixture utilizing app factory

This commit is contained in:
Kyle Lawlor 2017-04-02 11:55:05 -04:00
parent 8cf32bca51
commit 54b6fc8de6
6 changed files with 72 additions and 24 deletions

View file

@ -9,9 +9,11 @@
~ How do I use it?
1. edit the configuration in the flaskr.py file or
1. edit the configuration in the factory.py file or
export an FLASKR_SETTINGS environment variable
pointing to a configuration file.
pointing to a configuration file or pass in a
dictionary with config values using the create_app
function.
2. install the app from the root of the project directory
@ -19,7 +21,7 @@
3. Instruct flask to use the right application
export FLASK_APP=flaskr
export FLASK_APP=flaskr._cliapp
4. initialize the database with this command: