#16096: Template instances should have an origin attribute.
-----------------------------+-------------------------------------------
     Reporter:  jdunck       |                    Owner:  nobody
         Type:  New feature  |                   Status:  new
    Milestone:               |                Component:  Template system
      Version:  1.3          |                 Severity:  Normal
     Keywords:               |             Triage Stage:  Unreviewed
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |
-----------------------------+-------------------------------------------
 Templates are constructed with an optional origin argument; this is used
 for debugging purposes.

 But I think it would be useful for the Template instance to have an origin
 attribute -- then template origins could be more easily inspected and
 logged outside the django.template infrastructure.  The specific use case
 I have in mind is making it clearer to FE devs which templates/template
 dirs are being used for a given request.

 Template's constructor receives an origin parameter, so this should be a
 simple change.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16096>
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 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.

Reply via email to