Opened 11 years ago

Closed 11 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

Description

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@… 11 years ago.
Diff for module path template lookup

Download all attachments as: .zip

Change History (2)

by mcanix@…, 11 years ago

Attachment: namespace_search.diff added

Diff for module path template lookup

comment:1 by Anssi Kääriäinen, 11 years ago

Resolution: needsinfo
Status: newclosed

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