Browse Source

Changed default config to handle debug toolbar.

Ralfp 12 years ago
parent
commit
4bc64c971f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      deployment/settings.py

+ 4 - 0
deployment/settings.py

@@ -164,6 +164,10 @@ WSGI_APPLICATION = 'deployment.wsgi.application'
 if SECRET_KEY == 'yaobeifl1a6hf&3)^uc#^vlu1ud7xp^+*c5zoq*tf)fvs#*o$#':
     SECRET_KEY = ''
 
+# Disable Jinja2 for django debug toolbar templates
+if DEBUG:
+    DEFAULT_JINJA2_TEMPLATE_INTERCEPT_RE = r"^(?!debug_toolbar/).*"
+
 # Override config if we are in tests
 if 'test' in sys.argv:
     if not SECRET_KEY: