Skip to content
Myr

i think this is how this works now

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent a63a4cb · Browse files · 2 files+2 added−17 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−17 removed

  • other:+2 added−17 removed

2 files+2 added−17 removed

deleted:examples/flaskr/flaskr/_cliapp.py-15 removed
1# -*- coding: utf-8 -*-2"""3 Flaskr4 ~~~~~~56 A microblog example application written as Flask tutorial with7 Flask and sqlite3.89 :copyright: (c) 2015 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""1213from flaskr.factory import create_app1415app = create_app()
modified:examples/flaskr/README+2 added-2 removed
9 unmodified lines
10 ~ How do I use it?1112 1. edit the configuration in the factory.py file or13 export an FLASKR_SETTINGS environment variable14 pointing to a configuration file or pass in a 14 pointing to a configuration file or pass in a15 dictionary with config values using the create_app16 function.1718 2. install the app from the root of the project directory
1 unmodified line
20 pip install --editable .2122 3. Instruct flask to use the right application2324 export FLASK_APP=flaskr._cliapp24 export FLASK_APP=flaskr.factory:create_app()2526 4. initialize the database with this command:2728 flask initdb
12 unmodified lines