From a820ba58c58bc6fb3a5a38684e2a1eb1102674d8 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Mon, 14 May 2012 22:36:34 +0200 Subject: [PATCH] Use debug_toolbar if we are debugging --- peojumk/settings.py | 5 +++++ 1 file changed, 5 insertions(+) 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', ) -- 2.39.5