#5948: MyApp priority in template loader app_directories
----------------------------------------+-----------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: closed | Component: Template system
Version: SVN | Resolution: wontfix
Keywords: template loader priority | Stage: Unreviewed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
----------------------------------------+-----------------------------------
Changes (by mtredinnick):
* status: new => closed
* needs_better_patch: => 0
* resolution: => wontfix
* needs_tests: => 0
* needs_docs: => 0
Comment:
It's only accidental (and not to be relied upon) that even application
listing order is used for the app_loader. If you have two templates with
the same name (including parent directories below template/) and you're
using the app_loader, anything can happen (so don't do that). It's not
always going to be correct to give priority to the "current" application,
since (a) there may not be a current application because views can come
from anywhere and (b) it impedes sharing between applications.
So I think this isn't something we're going to change. We also don't
really need yet another template loader in the standard list just for this
case, I feel (although obviously you can write a third-party one if you
need it).
--
Ticket URL: <http://code.djangoproject.com/ticket/5948#comment:1>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---