From d0088e63d8004b17d5dd762ac3de00841bd34c00 Mon Sep 17 00:00:00 2001 From: Gerald Senarclens de Grancy Date: Wed, 13 Jun 2018 20:51:50 +0200 Subject: [PATCH] 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 --- examples/tutorial/README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/tutorial/README.rst b/examples/tutorial/README.rst index 1afb1ebd..7530e77e 100644 --- a/examples/tutorial/README.rst +++ b/examples/tutorial/README.rst @@ -49,12 +49,14 @@ Run export FLASK_APP=flaskr export FLASK_ENV=development + flask init-db flask run Or on Windows cmd:: set FLASK_APP=flaskr set FLASK_ENV=development + flask init-db flask run Open http://127.0.0.1:5000 in a browser.