From e4662ec20987a650a08b296b7479b7229c6fe58b Mon Sep 17 00:00:00 2001 From: Myke Stubbs Date: Fri, 27 Sep 2013 15:07:04 -0700 Subject: [PATCH] Use expected config object when creating app --- {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/app.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/app.py index f83f439..6adf803 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/app.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/app.py @@ -18,8 +18,7 @@ def create_app(config_object, env): :param env: A string, the current environment. Either "dev" or "prod" ''' app = Flask(__name__) - app.config.from_object('{{cookiecutter.repo_name}}.settings.{env}Config' - .format(env=env.capitalize())) + app.config.from_object(config_object) app.config['ENV'] = env # Initialize SQLAlchemy db.init_app(app)