Code

#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@… 16 months ago.
Diff for module path template lookup

Download all attachments as: .zip

Change History (2)

Changed 16 months ago by mcanix@…

Diff for module path template lookup

comment:1 Changed 15 months 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.