Browse Source

add init-db call to flask tutorial

otherwise the user is confronted with an unpleasant error
message when accessing the dev server the first time
pull/2826/head
Gerald Senarclens de Grancy 6 years ago
parent
commit
d0088e63d8
  1. 2
      examples/tutorial/README.rst

2
examples/tutorial/README.rst

@ -49,12 +49,14 @@ Run
export FLASK_APP=flaskr export FLASK_APP=flaskr
export FLASK_ENV=development export FLASK_ENV=development
flask init-db
flask run flask run
Or on Windows cmd:: Or on Windows cmd::
set FLASK_APP=flaskr set FLASK_APP=flaskr
set FLASK_ENV=development set FLASK_ENV=development
flask init-db
flask run flask run
Open http://127.0.0.1:5000 in a browser. Open http://127.0.0.1:5000 in a browser.

Loading…
Cancel
Save