From 9e5e4914ef1c7dacb9e2c4581dbadc9e1e437d67 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 16 Apr 2015 19:32:42 -0400 Subject: [PATCH] [1.8.x] Fixed #24646 -- Fixed jinja2 example on Python 2. Backport of d974c89ebb8a59d91f664035d98d42dbb5cdd592 from master --- docs/topics/templates.txt | 2 ++ 1 file changed, 2 insertions(+) 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