#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
--------------------------------------+------------------------------------
Comment (by Tim Graham <timograham@…>):
In [changeset:"4cc0baa98e8a5bb8f2cf91539d141cbc30af6f61" 4cc0baa9]:
{{{
#!CommitTicketReference repository=""
revision="4cc0baa98e8a5bb8f2cf91539d141cbc30af6f61"
[1.8.x] 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.
Backport of 24620d71f2116da31abe6c9391f7bc807ac23c0b from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25079#comment:7>
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.07444d1e208e050e69aa8edb50ab2f18%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.