#29446: Include template context in error page when relevant
-------------------------------------+-------------------------------------
               Reporter:  Shai       |          Owner:  (none)
  Berger                             |
                   Type:  New        |         Status:  new
  feature                            |
              Component:  Error      |        Version:  2.0
  reporting                          |
               Severity:  Normal     |       Keywords:  template debug
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  1          |
-------------------------------------+-------------------------------------
 When an error is encountered while rendering a template (in Debug mode),
 Django helpfully displays the template source, followed by the usual
 stack-trace with local variable values. It could be useful to also include
 the template context at the point of the error, as these are often the
 relevant "local variables".

 While the context is actually often available as a local variable in one
 of the function calls close to the bottom of the stack trace, it is not
 obvious, and requires a somewhat tedious search (there are usually a
 series of calls taking a `context` variable, most of them irrelevant).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29446>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/048.a5284bb1e70d199384bee049785c825e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to