From 7232045aedaa7f4090df8fa0f4943c5a3a9fc2ea Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 18 Oct 2010 15:43:47 +0100 Subject: [PATCH] Added django-debug-toolbar to assit with profiling --- requirements.txt | 1 + settings.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/requirements.txt b/requirements.txt index 0d31274..8a0d958 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,4 @@ xmlrpclib==1.0.1 South==0.7.1 fabric==0.9.1 flup +django-debug-toolbar==0.8.3 diff --git a/settings.py b/settings.py index 1c85ea3..20a7015 100755 --- a/settings.py +++ b/settings.py @@ -4,6 +4,7 @@ import os DEBUG = True TEMPLATE_DEBUG = DEBUG +INTERNAL_IPS = ('127.0.0.1','91.121.180.45') ADMINS = ( ('Andrew Williams', 'andy@tensixtyone.com'), @@ -59,6 +60,7 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'debug_toolbar.middleware.DebugToolbarMiddleware', ) ROOT_URLCONF = 'urls' @@ -77,6 +79,7 @@ INSTALLED_APPS = ( 'south', 'piston', 'registration', + 'debug_toolbar', 'eve_proxy', 'eve_api', 'reddit',