Explorar o código

Fixed #24646 -- Fixed jinja2 example on Python 2.

Tim Graham %!s(int64=10) %!d(string=hai) anos
pai
achega
d974c89ebb
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      docs/topics/templates.txt

+ 2 - 0
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