summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-04-16 19:32:42 -0400
committerTim Graham <timograham@gmail.com>2015-04-16 19:32:42 -0400
commitd974c89ebb8a59d91f664035d98d42dbb5cdd592 (patch)
treeb2f7cdccd4ae64ffd7cb078f4f44d3a118e6ccc9 /docs
parent33b1635a90564a26054930caa0dd8f5be31e101e (diff)
Fixed #24646 -- Fixed jinja2 example on Python 2.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/templates.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt
index 9f0048bc1f..d3b951a7ac 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