From bb39e4b57e036765ea86ebb36913a54ec78b2b04 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 11 Jan 2018 06:48:29 -0500 Subject: [1.11.x] Fixed #29002 -- Corrected cached template loader docs about when it's automatically enabled. Thanks oTree-org for the suggestion. Backport of 7c00f9fb1cc47e1c993f7728e2b592a1be29dd40 from master --- docs/ref/templates/api.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index df3123cf16..7513b11930 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -932,8 +932,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'] ` isn't specified. + This loader is automatically enabled if :setting:`OPTIONS['loaders'] + ` isn't specified and :setting:`OPTIONS['debug'] + ` 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:: -- cgit v1.3