From 472e49660989cd17231f54fd55aed635beb14ff3 Mon Sep 17 00:00:00 2001 From: Ali Cirik Date: Tue, 1 Nov 2016 16:03:46 -0400 Subject: [PATCH] This passes `app_name` instead of the + current `app_name.app` to Flask. Please see `About the First Parameter` note in http://flask.pocoo.org/docs/0.11/api/ --- {{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py index 91b455b..ccb67c1 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/app.py @@ -13,7 +13,7 @@ def create_app(config_object=ProdConfig): :param config_object: The configuration object to use. """ - app = Flask(__name__) + app = Flask(__name__.split('.')[0]) app.config.from_object(config_object) register_extensions(app) register_blueprints(app)