#24891: Warn if referencing a template by the same name as one in an installed 
app
with higher precedence
---------------------------------+--------------------------------------
     Reporter:  giuliettamasina  |                    Owner:  nobody
         Type:  New feature      |                   Status:  closed
    Component:  Template system  |                  Version:  master
     Severity:  Normal           |               Resolution:  wontfix
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------
Changes (by mjtamlyn):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 There's a big warning about this in the first mention of template names in
 the tutorial, recommending the use of a subfolder -
 https://docs.djangoproject.com/en/dev/intro/tutorial03/#a-shortcut-render

 This is further explained, along with the way multiple backends are
 resolved in the API docs.

 Adding such a warning would require additional work every time a template
 is selected - and would be specific to one template engine. It would
 generate unnecessary noise in the common, documented in the tutorial
 pattern of overriding an admin template with one in your own app.

 +1 to using debug toolbar.

 I don't see an obvious opportunity for more documentation as they way it
 works is mentioned several times in the API docs and twice in the
 tutorial. Adding warnings would generate unnecessary noise. Template
 overriding is an important feature. Consequently, I am closing this
 ticket.

--
Ticket URL: <https://code.djangoproject.com/ticket/24891#comment:4>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.4309854f00b5653be7f1ae04b78dd3ec%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to