Opened 7 years ago

Closed 7 years ago

#7242 closed (invalid)

{% load %} tag fails silently if there is a conflict modules with the same name

Reported by: simon Owned by: nobody
Component: Template system Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

For example:

app_one/templatetags/foo.py
app_two/templatetags/foo.py

{% load foo %}

The above fails silently, but it should throw a great big scary error saying that there are two template tag packages with the same name.

Change History (1)

comment:1 Changed 7 years ago by mattmcc

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

It doesn't fail, it successfully loads the first library with a matching name. This is no more an error than having two modules of the same name on your pythonpath.

Note: See TracTickets for help on using tickets.
Back to Top