Add config to app object

This commit is contained in:
Brian Duggan 2018-06-08 11:30:09 -04:00 committed by Jason Garber
parent a340eede07
commit 5a3c2cff82

View File

@ -60,8 +60,10 @@ def make_app(config,**kwargs):
template_path = home.child('templates'),
static_path = home.child('static'),
cookie_secret=config["default"]["COOKIE_SECRET"],
debug=config['default'].getboolean('DEBUG')
debug=config['default'].getboolean('DEBUG'),
**kwargs
)
app.config = config
return app