#17199: Base Template Loader should return the origin
-------------------------------------+-------------------------------------
Reporter: Kronuz | Owner: nobody
Type: Bug | Status: closed
Component: Template system | Version: master
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Design
Has patch: 1 | decision needed
Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by aaugustin):
* status: reopened => closed
* resolution: => invalid
Comment:
#16096 (filed by a core dev) suggests that ``origin`` is purely for debug
puposes. That would explain why it's set only when the template isn't
found and when ``TEMPLATE_DEBUG = True``.
As far as I can tell, you're trying to use the ``origin`` returned by
``BaseLoader.find_template()`` for much more than its purpose.
Wouldn't #16096 be a much more simple solution for the problem you're
trying to solve?
--
Ticket URL: <https://code.djangoproject.com/ticket/17199#comment:8>
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].
For more options, visit https://groups.google.com/groups/opt_out.