]> err.no Git - peojumk/commitdiff
Use debug_toolbar if we are debugging
authorTollef Fog Heen <tfheen@err.no>
Mon, 14 May 2012 20:36:34 +0000 (22:36 +0200)
committerTollef Fog Heen <tfheen@err.no>
Mon, 14 May 2012 20:36:34 +0000 (22:36 +0200)
peojumk/settings.py

index c3e8310632a36ee3efb739b3b6e3a7b55f84d6b2..33ad44d6c31cc36fa7646108692e91267677e091 100644 (file)
@@ -164,3 +164,8 @@ try:
     from local_settings import *
 except ImportError, exp:
     pass
+
+if DEBUG:
+    INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',)
+    INTERNAL_IPS = ('127.0.0.1',)
+    MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + ('debug_toolbar.middleware.DebugToolbarMiddleware', )