Opened 12 years ago
Closed 12 years ago
#19548 closed Cleanup/optimization (needsinfo)
Extend app_directories template loader to search module path not just directory
Reported by: | 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)
Change History (2)
by , 12 years ago
Attachment: | namespace_search.diff added |
---|
comment:1 by , 12 years ago
Resolution: | → needsinfo |
---|---|
Status: | new → 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.
Diff for module path template lookup