1
0
mirror of https://github.com/django/django.git synced 2025-01-11 10:56:28 +00:00

[1.8.x] Fixed #24646 -- Fixed jinja2 example on Python 2.

Backport of d974c89ebb from master
This commit is contained in:
Tim Graham 2015-04-16 19:32:42 -04:00
parent 581afddc77
commit 9e5e4914ef

View File

@ -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