summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-01-11 06:48:29 -0500
committerGitHub <noreply@github.com>2018-01-11 06:48:29 -0500
commit7c00f9fb1cc47e1c993f7728e2b592a1be29dd40 (patch)
tree50227cad5b3c76bd30a831fe697979d2d23b04db /docs/ref
parentf636f0bb86a5ff3a61401f5ec7ea5d3392edd30f (diff)
Fixed #29002 -- Corrected cached template loader docs about when it's automatically enabled.
Thanks oTree-org for the suggestion.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/templates/api.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index b20f91e1e4..6ce34b0b20 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -908,8 +908,10 @@ loaders that come with Django:
``Template`` in memory. The cached ``Template`` instance is returned for
subsequent requests to load the same template.
- This loader is automatically enabled if :setting:`DEBUG` is ``False`` and
- :setting:`OPTIONS['loaders'] <TEMPLATES-OPTIONS>` isn't specified.
+ This loader is automatically enabled if :setting:`OPTIONS['loaders']
+ <TEMPLATES-OPTIONS>` isn't specified and :setting:`OPTIONS['debug']
+ <TEMPLATES-OPTIONS>` is ``False`` (the latter option defaults to the value
+ of :setting:`DEBUG`).
You can also enable template caching with some custom template loaders
using settings like this::