This fixes #325.
authorArmin Ronacher <armin.ronacher@active-4.com>
Wed, 4 Feb 2009 18:03:40 +0000 (19:03 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Wed, 4 Feb 2009 18:03:40 +0000 (19:03 +0100)
--HG--
branch : trunk

ext/djangojinja2.py

index bab6ec0bfc7c1c7e14d143e7143d17779f6f8c57..d24d1649451758712c5d8c2c190a1567720becda 100644 (file)
@@ -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', ()))