From d974c89ebb8a59d91f664035d98d42dbb5cdd592 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 16 Apr 2015 19:32:42 -0400 Subject: [PATCH] Fixed #24646 -- Fixed jinja2 example on Python 2. --- docs/topics/templates.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt index 9f0048bc1f..d3b951a7ac 100644 --- a/docs/topics/templates.txt +++ b/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