#12787: TemplateDoesNotExist exception does not report the correct template_name
-------------------------------------------+--------------------------------
               Reporter:  trigeek38        |         Owner:  anonymous          
 
                 Status:  closed           |     Milestone:  1.2                
 
              Component:  Template system  |       Version:  SVN                
 
             Resolution:  fixed            |      Keywords:  
TemplateDoesNotExist
           Triage Stage:  Unreviewed       |     Has patch:  1                  
 
    Needs documentation:  0                |   Needs tests:  1                  
 
Patch needs improvement:  1                |  
-------------------------------------------+--------------------------------

Comment (by kmtracey):

 Re-reading now, I find the original description inconclusive as to which
 case it was reporting -- depends on what was meant by "call": render or
 extend. I don't remember if I tried both while initially looking at the
 ticket and choose to focus on the extends case because it was a superset
 of the other, or if I just assumed "call" meant extend. In some brief
 tests now with running against r12791/r12792 (right before and after the
 fix) if I switch things around to be just a plain include of a missing
 template, I see the wrong template reported before the fix and the correct
 one after the fix, so the case you mention here was also fixed by this
 code change. I do also believe that case is a subset of the extends case
 that is actually tested, so I don't believe either the tests or the fix
 here are "wrong".

 Perhaps the problem you are encountering is the one identified in #15502,
 which involves a similar problem when a list of templates is provided.
 Sorry, I did not consider that case when looking at this ticket (there was
 no mention of lists of templates being tried), so that case was not fixed
 by this ticket.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12787#comment:13>
Django <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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to