#24646: File names jinja2.py cannot import jinja2
-------------------------------+------------------------------------
Reporter: pydanny | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.8
Severity: Normal | Resolution:
Keywords: jinja2 | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by timgraham):
* has_patch: 0 => 1
Comment:
Good?
{{{
diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt
index 9f0048b..d3b951a 100644
--- a/docs/topics/templates.txt
+++ b/docs/topics/templates.txt
@@ -415,6 +415,8 @@ APIs, you must configure them into the environment.
For example, you can create ``myproject/jinja2.py`` with this content::
+ from __future__ import absolute_import # Python 2 only
+
from django.contrib.staticfiles.storage import staticfiles_storage
from django.core.urlresolvers import reverse
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24646#comment:5>
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/065.c55739be2e7b5def12bd4a5789b22efe%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.