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/
master
Ali Cirik 8 years ago
parent 7d80cd7098
commit 472e496609
  1. 2
      {{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. :param config_object: The configuration object to use.
""" """
app = Flask(__name__) app = Flask(__name__.split('.')[0])
app.config.from_object(config_object) app.config.from_object(config_object)
register_extensions(app) register_extensions(app)
register_blueprints(app) register_blueprints(app)

Loading…
Cancel
Save