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:33:07 -0400
commit9e5e4914ef1c7dacb9e2c4581dbadc9e1e437d67 (patch)
treed671da65fb8347e4d99dd297fcfc225c311e66ac /docs
parent581afddc77ccd2e343d51ede5deb33bbcf113ab2 (diff)
[1.8.x] Fixed #24646 -- Fixed jinja2 example on Python 2.
Backport of d974c89ebb8a59d91f664035d98d42dbb5cdd592 from master
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 aab43f6c88..7a0fc77373 100644
--- a/docs/topics/templates.txt
+++ b/docs/topics/templates.txt
@@ -423,6 +423,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