diff bns_website/settings/local.py @ 15:6b664ec90f2f

Merged Brian's changes with mine.
author Bob Mourlam <bob.mourlam@gmail.com>
date Sun, 30 Oct 2011 21:37:52 -0500
parents d5f3bb516fd3
children
line wrap: on
line diff
--- a/bns_website/settings/local.py	Sun Oct 30 21:33:45 2011 -0500
+++ b/bns_website/settings/local.py	Sun Oct 30 21:37:52 2011 -0500
@@ -62,3 +62,16 @@
         'handlers': ['file'],
     },
 }
+
+# Django Debug Toolbar support
+if DEBUG:
+    try:
+        import debug_toolbar
+    except ImportError:
+        pass
+    else:
+        i = MIDDLEWARE_CLASSES.index('django.middleware.common.CommonMiddleware')
+        MIDDLEWARE_CLASSES.insert(i + 1,
+                'debug_toolbar.middleware.DebugToolbarMiddleware')
+        INTERNAL_IPS = ['127.0.0.1']
+        INSTALLED_APPS.append('debug_toolbar')