It says about the cached template loader:
{{{
This loader is automatically enabled if DEBUG is False and
OPTIONS['loaders'] isn’t specified.
}}}
Actually, it's not based on DEBUG per se, but rather the template engine's
'debug' option, which is acknowledged correctly elsewhere in the docs.
So, I would correct that text to:
{{{
This loader is automatically enabled if OPTIONS['loaders'] isn’t specified
and the template engine's debug option is False (if not set, this option
defaults to the value of DEBUG)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29002>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Old description:
> The documentation here:
> https://docs.djangoproject.com/en/2.0/ref/templates/api/#django.template.loaders.cached.Loader
>
> It says about the cached template loader:
>
> {{{
> This loader is automatically enabled if DEBUG is False and
> OPTIONS['loaders'] isn’t specified.
> }}}
>
> Actually, it's not based on DEBUG per se, but rather the template
> engine's 'debug' option, which is acknowledged correctly elsewhere in the
> docs.
>
> So, I would correct that text to:
>
> {{{
> This loader is automatically enabled if OPTIONS['loaders'] isn’t
> specified and the template engine's debug option is False (if not set,
> this option defaults to the value of DEBUG)
> }}}
New description:
The documentation here:
https://docs.djangoproject.com/en/2.0/ref/templates/api/#django.template.loaders.cached.Loader
It says about the cached template loader:
{{{
This loader is automatically enabled if DEBUG is False and
OPTIONS['loaders'] isn’t specified.
}}}
Actually, it's not based on DEBUG per se, but rather the template engine's
'debug' option, which is acknowledged correctly elsewhere in the docs.
So, I would correct that text to:
{{{
This loader is automatically enabled if OPTIONS['loaders'] isn’t specified
and the OPTIONS['debug'] is False (if not set, this option defaults to the
value of DEBUG)
}}}
--
--
Ticket URL: <https://code.djangoproject.com/ticket/29002#comment:1>
* has_patch: 0 => 1
* stage: Unreviewed => Accepted
Comment:
[https://github.com/django/django/pull/9558 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/29002#comment:2>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/29002#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"7c00f9fb1cc47e1c993f7728e2b592a1be29dd40" 7c00f9f]:
{{{
#!CommitTicketReference repository=""
revision="7c00f9fb1cc47e1c993f7728e2b592a1be29dd40"
Fixed #29002 -- Corrected cached template loader docs about when it's
automatically enabled.
Thanks oTree-org for the suggestion.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29002#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"3d144787c9d80b868ecbef348049275493f5fc78" 3d144787]:
{{{
#!CommitTicketReference repository=""
revision="3d144787c9d80b868ecbef348049275493f5fc78"
[2.0.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
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29002#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"bb39e4b57e036765ea86ebb36913a54ec78b2b04" bb39e4b5]:
{{{
#!CommitTicketReference repository=""
revision="bb39e4b57e036765ea86ebb36913a54ec78b2b04"
[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
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29002#comment:6>