#24265: jinja2 template backend results in KeyError
-------------------------------------+-------------------------------------
Reporter: robhudson | Owner: aaugustin
Type: Bug | Status: assigned
Component: Template system | Version: 1.8alpha1
Severity: Normal | Resolution:
Keywords: multiple-template- | Triage Stage: Accepted
engines 1.8-beta |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by aaugustin):
In order to reproduce this issue, I ran `django-admin startproject mysite`
and defined `TEMPLATES` as follows:
{{{
TEMPLATES = [
{
'BACKEND': 'django.template.backends.jinja2.Jinja2',
'DIRS': [],
'APP_DIRS': True,
},
]
}}}
I'm getting a similar stack trace when jinja2 isn't installed. On Python
3, thanks to exception chaining, the root cause is obvious; not so much on
Python 2. Rob, can you confirm that installing jinja2 solves the problem
for you?
If so, this is an error reporting issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/24265#comment:3>
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.2b8aae7a2345585b7ef5acfe454f9b11%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.