Skip to content
Myr

Update README

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

No need to manually initialize the database with a call to `init_db()` as this call is done before `app.run()` in flaskr.py, when you run the file.

authored by Alexander Thaller · committed by Alexander Thaller · parent 6309987 · Browse files · 1 file+1 added−6 removed
This commit

State

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

Diff stats

1 file+1 added−6 removed

  • other:+1 added−6 removed

1 file+1 added−6 removed

modified:examples/flaskr/README+1 added-6 removed
11 / Flaskr /23 a minimal blog application4
7 unmodified lines
12 1. edit the configuration in the flaskr.py file or13 export an FLASKR_SETTINGS environment variable14 pointing to a configuration file.1517 2. fire up a python shell and run this:1819 >>> from flaskr import init_db; init_db()2021 3. now you can run the flaskr.py file with your16 2. now you can run the flaskr.py file with your17 python interpreter and the application will18 greet you on http://localhost:5000/19 20 ~ Is it tested?
3 unmodified lines