forked from orbit-oss/flask
When Flask app debugging is enabled (app.debug==True), and Jinja2 template auto-reloading is not explicitly disbaled, template auto-reloading should be enabled. If the app is instantiated, the jinja_env object is accessed (thereby initialising the Jinja2 environment) and the server is then started with app.run(debug=True), template auto-reloading is *not* enabled. This is because reading the jinja_env object causes the environment initialisation function to set auto_reload to app.debug (which isn't yet True). Calling app.run(debug=True) should correct this in order to remain consistent with Flask code reloading (which is enabled within app.run() if debug == True). |
||
|---|---|---|
| .. | ||
| ext | ||
| __init__.py | ||
| __main__.py | ||
| _compat.py | ||
| app.py | ||
| blueprints.py | ||
| cli.py | ||
| config.py | ||
| ctx.py | ||
| debughelpers.py | ||
| exthook.py | ||
| globals.py | ||
| helpers.py | ||
| json.py | ||
| logging.py | ||
| sessions.py | ||
| signals.py | ||
| templating.py | ||
| testing.py | ||
| views.py | ||
| wrappers.py | ||