Browse Source

fix templates not reloading even when explicitly set

master
cinnaboot 7 years ago
parent
commit
69b8b15887
  1. 5
      video_metadata/__init__.py

5
video_metadata/__init__.py

@ -26,6 +26,11 @@ def create_app():
app.jinja_env.lstrip_blocks = True app.jinja_env.lstrip_blocks = True
app.config.from_object(default_config(app)) 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 # add local config changes
app.config.from_pyfile('local_config.py') app.config.from_pyfile('local_config.py')

Loading…
Cancel
Save