Skip to content
Myr

improve TEMPLATE_AUTO_RELOAD docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by defuz · committed by defuz · parent f88765d · Browse files · 2 files+7 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−9 removed

  • other:+7 added−9 removed

2 files+7 added−9 removed

modified:docs/config.rst+5 added-6 removed
180 unmodified lines
181 jsonify responses will be pretty printed182 if they are not requested by an183 XMLHttpRequest object (controlled by184 the ``X-Requested-With`` header)185``TEMPLATES_AUTO_RELOAD`` If this is set to `True` every time a template186 is requested Flask checks if the template was187 modified and if yes, it will reload the188 template. By default the value is ``None``189 which means that Flask checks template190 sources only in debug mode.185``TEMPLATES_AUTO_RELOAD`` Whether to check for modifications of186 the template source and reload it187 automatically. By default the value is188 `None` which means that Flask checks189 original file only in debug mode.190``EXPLAIN_TEMPLATE_LOADING`` If this is enabled then every attempt to191 load a template will write an info192 message to the logger explaining the193 attempts to locate the template. This
269 unmodified lines
modified:CHANGES+2 added-3 removed
21 unmodified lines
22 from a view function.23- Added :meth:`flask.Config.from_json`.24- Added :attr:`flask.Flask.config_class`.25- Added :meth:`flask.config.Config.get_namespace`.26- Added ``TEMPLATES_AUTO_RELOAD`` config key. Now by default templates will be27 reloaded every time a template is requested only if the application is28 running in debug mode.26- Templates are no longer automatically reloaded outside of debug mode. This27 can be configured with the new ``TEMPLATES_AUTO_RELOAD`` config key.28- Added a workaround for a limitation in Python 3.3's namespace loader.29- Added support for explicit root paths when using Python 3.3's namespace30 packages.31- Added ``flask`` and the ``flask.cli`` module to start the local
507 unmodified lines