|
|
|
|
@ -26,6 +26,11 @@ def create_app():
|
|
|
|
|
app.jinja_env.lstrip_blocks = True |
|
|
|
|
app.config.from_object(default_config(app)) |
|
|
|
|
|
|
|
|
|
# TEMPLATES_AUTO_RELOAD wasn't working with uwsgi |
|
|
|
|
# https://github.com/pallets/flask/issues/1907#issuecomment-471320980 |
|
|
|
|
if app.config['DEBUG'] == True: |
|
|
|
|
app.jinja_env.auto_reload = True |
|
|
|
|
|
|
|
|
|
# add local config changes |
|
|
|
|
app.config.from_pyfile('local_config.py') |
|
|
|
|
|
|
|
|
|
|