Add config to app object
This commit is contained in:
parent
a340eede07
commit
5a3c2cff82
@ -60,8 +60,10 @@ def make_app(config,**kwargs):
|
|||||||
template_path = home.child('templates'),
|
template_path = home.child('templates'),
|
||||||
static_path = home.child('static'),
|
static_path = home.child('static'),
|
||||||
cookie_secret=config["default"]["COOKIE_SECRET"],
|
cookie_secret=config["default"]["COOKIE_SECRET"],
|
||||||
debug=config['default'].getboolean('DEBUG')
|
debug=config['default'].getboolean('DEBUG'),
|
||||||
|
**kwargs
|
||||||
)
|
)
|
||||||
|
app.config = config
|
||||||
return app
|
return app
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user