# finds and renders base.txt:
render_template("base.txt")
# finds and tries to render something.txt, but then fails to find
base.txt:
render_template("something.txt")
}}}
I wanted to use this for django management commands which send emails, so
I just wanted to load templates from a specific directory.
--
Ticket URL: <https://code.djangoproject.com/ticket/24111>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => wontfix
* needs_tests: => 0
* needs_docs: => 0
Comment:
Yes, the `dirs` args doesn't work correctly with template inheritance and
was deprecated in Django 1.8 for this reason (among others).
This is a structural problem. Django loads templates with template loaders
and `dirs` only affects a small and incomplete part of loaders.
--
Ticket URL: <https://code.djangoproject.com/ticket/24111#comment:1>
Comment (by aaugustin):
In Django 1.8 you will be able to configure two templates engines, one for
general use and one for loading email templates :-)
--
Ticket URL: <https://code.djangoproject.com/ticket/24111#comment:2>