Merge pull request #83 from aliavni/master

Pass `app_name` instead of `app_name.app` to Flask
master
Steven Loria 8 years ago committed by GitHub
commit 4e468d4de7
  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.
"""
app = Flask(__name__)
app = Flask(__name__.split('.')[0])
app.config.from_object(config_object)
register_extensions(app)
register_blueprints(app)

Loading…
Cancel
Save