diff options
| author | Tim Graham <timograham@gmail.com> | 2015-04-16 19:32:42 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-04-16 19:33:07 -0400 |
| commit | 9e5e4914ef1c7dacb9e2c4581dbadc9e1e437d67 (patch) | |
| tree | d671da65fb8347e4d99dd297fcfc225c311e66ac /docs | |
| parent | 581afddc77ccd2e343d51ede5deb33bbcf113ab2 (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.txt | 2 |
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 |
