From e26cc8f9043946e7c9259699af9486dfe2148a53 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 25 May 2017 18:01:52 -0400 Subject: [PATCH] i think this is how this works now --- examples/flaskr/README | 4 ++-- examples/flaskr/flaskr/_cliapp.py | 15 --------------- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 examples/flaskr/flaskr/_cliapp.py diff --git a/examples/flaskr/README b/examples/flaskr/README index 22ae857f..f60287fa 100644 --- a/examples/flaskr/README +++ b/examples/flaskr/README @@ -11,7 +11,7 @@ 1. edit the configuration in the factory.py file or export an FLASKR_SETTINGS environment variable - pointing to a configuration file or pass in a + pointing to a configuration file or pass in a dictionary with config values using the create_app function. @@ -21,7 +21,7 @@ 3. Instruct flask to use the right application - export FLASK_APP=flaskr._cliapp + export FLASK_APP=flaskr.factory:create_app() 4. initialize the database with this command: diff --git a/examples/flaskr/flaskr/_cliapp.py b/examples/flaskr/flaskr/_cliapp.py deleted file mode 100644 index b13bf79a..00000000 --- a/examples/flaskr/flaskr/_cliapp.py +++ /dev/null @@ -1,15 +0,0 @@ -# -*- coding: utf-8 -*- -""" - Flaskr - ~~~~~~ - - A microblog example application written as Flask tutorial with - Flask and sqlite3. - - :copyright: (c) 2015 by Armin Ronacher. - :license: BSD, see LICENSE for more details. -""" - -from flaskr.factory import create_app - -app = create_app() \ No newline at end of file