From: Tollef Fog Heen Date: Mon, 14 May 2012 20:36:34 +0000 (+0200) Subject: Use debug_toolbar if we are debugging X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a820ba58c58bc6fb3a5a38684e2a1eb1102674d8;p=peojumk Use debug_toolbar if we are debugging --- diff --git a/peojumk/settings.py b/peojumk/settings.py index c3e8310..33ad44d 100644 --- a/peojumk/settings.py +++ b/peojumk/settings.py @@ -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', )