From: Armin Ronacher Date: Wed, 4 Feb 2009 18:03:40 +0000 (+0100) Subject: This fixes #325. X-Git-Tag: 2.2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bec76c789fa89e3ea86e3998ff3d4941df26edd1;p=thirdparty%2Fjinja.git This fixes #325. --HG-- branch : trunk --- diff --git a/ext/djangojinja2.py b/ext/djangojinja2.py index bab6ec0b..d24d1649 100644 --- a/ext/djangojinja2.py +++ b/ext/djangojinja2.py @@ -44,7 +44,7 @@ def create_env(): """Create a new Jinja2 environment.""" searchpath = list(settings.JINJA2_TEMPLATE_DIRS) return Environment(loader=FileSystemLoader(searchpath), - auto_reload=not settings.TEMPLATE_DEBUG, + auto_reload=settings.TEMPLATE_DEBUG, cache_size=getattr(settings, 'JINJA2_CACHE_SIZE', 50), extensions=getattr(settings, 'JINJA2_EXTENSIONS', ()))