mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05:00
Merge branch 'master' of github.com:alphagov/notifications-admin
This commit is contained in:
@@ -75,15 +75,16 @@ def init_csrf(application):
|
|||||||
|
|
||||||
|
|
||||||
def init_app(app, config_overrides):
|
def init_app(app, config_overrides):
|
||||||
for key, value in app.config.items():
|
|
||||||
if key in os.environ:
|
|
||||||
app.config[key] = convert_to_boolean(os.environ[key])
|
|
||||||
|
|
||||||
if config_overrides:
|
if config_overrides:
|
||||||
for key in app.config.keys():
|
for key in app.config.keys():
|
||||||
if key in config_overrides:
|
if key in config_overrides:
|
||||||
app.config[key] = config_overrides[key]
|
app.config[key] = config_overrides[key]
|
||||||
|
|
||||||
|
for key, value in app.config.items():
|
||||||
|
if key in os.environ:
|
||||||
|
app.config[key] = convert_to_boolean(os.environ[key])
|
||||||
|
|
||||||
@app.context_processor
|
@app.context_processor
|
||||||
def inject_global_template_variables():
|
def inject_global_template_variables():
|
||||||
return {'asset_path': '/static/'}
|
return {'asset_path': '/static/'}
|
||||||
|
|||||||
Reference in New Issue
Block a user