Opened 3 years ago

Closed 2 years ago

#19548 closed Cleanup/optimization (needsinfo)

Extend app_directories template loader to search module path not just directory

Reported by: mcanix@… Owned by: nobody
Component: Template system Version: 1.4
Severity: Normal Keywords: template loader
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no


An issue exists in the template lookup system when using shared namespaces between similar but separated django eggs.

Each egg contains it's own templates but when loading the eggs in Django only the most recent egg template directory is read. The attached patch searches the module.__path__ directories and not just the file location.

Attachments (1)

namespace_search.diff (1.1 KB) - added by mcanix@… 3 years ago.
Diff for module path template lookup

Download all attachments as: .zip

Change History (2)

Changed 3 years ago by mcanix@…

Diff for module path template lookup

comment:1 Changed 2 years ago by akaariai

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

We need a test case or self contained project to show the issue. To me "using shared namespaces between similar but separated django eggs" doesn't ring a bell (maybe it should, but it doesn't). So, closing as needsinfo.

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