forked from orbit-oss/flask
Update README
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.
This commit is contained in:
parent
6309987dca
commit
8ca7fc47d0
1 changed files with 1 additions and 6 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
/ Flaskr /
|
/ Flaskr /
|
||||||
|
|
||||||
a minimal blog application
|
a minimal blog application
|
||||||
|
|
@ -14,11 +13,7 @@
|
||||||
export an FLASKR_SETTINGS environment variable
|
export an FLASKR_SETTINGS environment variable
|
||||||
pointing to a configuration file.
|
pointing to a configuration file.
|
||||||
|
|
||||||
2. fire up a python shell and run this:
|
2. now you can run the flaskr.py file with your
|
||||||
|
|
||||||
>>> from flaskr import init_db; init_db()
|
|
||||||
|
|
||||||
3. now you can run the flaskr.py file with your
|
|
||||||
python interpreter and the application will
|
python interpreter and the application will
|
||||||
greet you on http://localhost:5000/
|
greet you on http://localhost:5000/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue