#26164: Django 1.9: All template tags are loaded, whether desired or not
---------------------------------+--------------------------------------
Reporter: tBaxter | Owner: nobody
Type: Uncategorized | Status: closed
Component: Template system | Version: 1.9
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Comment (by tBaxter):
Respectfully, I think at the very least there's a documentation
improvement to be made here. The single sentence "Template tag modules are
imported when templates are configured" falls well short of describing the
current behavior, which was was surprising to many experienced Django devs
on #django IRC.
I understand that it is intentional, and whether or not I agree it's the
correct behavior isn't particularly relevant, but I'm trying to at least
minimize surprises and unwanted side-effects.
I would also like to propose a TEMPLATE['exclude_tags'] = () type setting
in which one could add filenames that should explicitly be blocked and
never loaded, if they are unwanted. I understand that could get a bit
messy and convoluted, but I wanted to float the idea.
--
Ticket URL: <https://code.djangoproject.com/ticket/26164#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.6c62973b554c1cc0310882087f5dc767%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.