#25079: Warn if both TEMPLATES and TEMPLATE_DIRS are defined
-------------------------------------+-------------------------------------
Reporter: danielr | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Template system | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by danielr):
I hadn't considered the other template settings - `DIRS` is the one that
people need to modify in order to get their templates loading at all, so
is the biggest concern. If you think it's valuable though I can loop
through all the `TEMPLATE_*` settings and raise a warning if they are
present.
For the compatibility issue, that's really why it's a warning rather than
an ImproperlyConfigured exception; warnings are easily silenced or even
just ignored.
--
Ticket URL: <https://code.djangoproject.com/ticket/25079#comment:3>
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.9195d681a517a8b2be1d303f2e8b7ea5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.