mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Fixed #24646 -- Fixed jinja2 example on Python 2.
This commit is contained in:
parent
33b1635a90
commit
d974c89ebb
@ -415,6 +415,8 @@ APIs, you must configure them into the environment.
|
|||||||
|
|
||||||
For example, you can create ``myproject/jinja2.py`` with this content::
|
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.contrib.staticfiles.storage import staticfiles_storage
|
||||||
from django.core.urlresolvers import reverse
|
from django.core.urlresolvers import reverse
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user