#32987: If multiple apps have templatetags modules with the same name, it
silently
drops all but one.
-------------------------------------+-------------------------------------
Reporter: Daniel | Owner: nobody
Type: New | Status: new
feature |
Component: Template | Version: 3.2
system |
Severity: Normal | Keywords: template, check
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
For example, if you have:
- blog/templatetags/navigation_tags.py
- news/templatetags/navigation_tags.py
- pages/templatetags/navigation_tags.py
then try to use them in a template:
{{{
{% load navigation_tags %}
}}}
then only one of these will be loaded - and there's no report that there
is a problem - but if you attempt to use one of the filters / tags from
one of the libraries that's not the loaded one, it throws a generic
template syntax error saying it's an invalid tag / filter.
== Proposed solution:
Add a new 'check' to the django checks that warns the user if there are
multiple templatetag libraries with the same name.
see PR:
https://github.com/django/django/pull/14735
--
Ticket URL: <https://code.djangoproject.com/ticket/32987>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/055.8146892dbc50920efcd9b652a2ee09cd%40djangoproject.com.