Add support for the django debug toolbar

This commit is contained in:
Frédéric Péters 2010-05-31 16:55:36 +02:00
parent 1408cc4661
commit 3958632278
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@
import os
DEBUG = True
USE_DEBUG_TOOLBAR = True
TEMPLATE_DEBUG = DEBUG
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
@ -93,3 +94,9 @@ INSTALLED_APPS = (
'django.contrib.admin',
'authentic.idp'
)
INTERNAL_IPS = ('127.0.0.1',)
if USE_DEBUG_TOOLBAR:
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INSTALLED_APPS += ('debug_toolbar',)