#25079: Warn if both TEMPLATES and TEMPLATE_DIRS are defined
--------------------------------------+------------------------------------
Reporter: danielr | Owner: nobody
Type: Cleanup/optimization | Status: closed
Component: Template system | Version: 1.8
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"24620d71f2116da31abe6c9391f7bc807ac23c0b" 24620d7]:
{{{
#!CommitTicketReference repository=""
revision="24620d71f2116da31abe6c9391f7bc807ac23c0b"
Fixed #25079 -- Added warning if both TEMPLATES and TEMPLATE_* settings
are defined.
Django ignores the value of the TEMPLATE_* settings if TEMPLATES is also
set, which is confusing for users following older tutorials. This change
adds a system check that warns if any of the TEMPLATE_* settings have
changed from their defaults but the TEMPLATES dict is also non-empty.
Removed the TEMPLATE_DIRS from the test settings file; this was marked
for removal in 1.10 but no tests fail if it is removed now.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25079#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.27c078f5b73284f05415901b17e1be47%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.