[PATCH 2/2] settings: Use the Django debug toolbar

Damien Lespiau damien.lespiau at intel.com
Sun Nov 9 02:58:30 AEDT 2014


I'd like to see how many requests are done per page to make sure what
I'm doing doesn't result in yet another request.

The toolbar will only be active if DEBUG = True.

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 apps/settings.py                       | 1 +
 docs/requirements-django-1.5-mysql.txt | 1 +
 docs/requirements-django-1.6-mysql.txt | 1 +
 3 files changed, 3 insertions(+)

diff --git a/apps/settings.py b/apps/settings.py
index f23fd92..6c4bd4a 100644
--- a/apps/settings.py
+++ b/apps/settings.py
@@ -96,6 +96,7 @@ INSTALLED_APPS = (
     'django.contrib.admin',
     'django.contrib.staticfiles',
     'patchwork',
+    'debug_toolbar',
 )
 
 STATIC_URL = '/static/'
diff --git a/docs/requirements-django-1.5-mysql.txt b/docs/requirements-django-1.5-mysql.txt
index ea9a77e..63d82da 100644
--- a/docs/requirements-django-1.5-mysql.txt
+++ b/docs/requirements-django-1.5-mysql.txt
@@ -1,3 +1,4 @@
 python-dateutil==1.5
 Django==1.5.10
 MySQL-python==1.2.5
+django-debug-toolbar
diff --git a/docs/requirements-django-1.6-mysql.txt b/docs/requirements-django-1.6-mysql.txt
index 6d39511..10edd7a 100644
--- a/docs/requirements-django-1.6-mysql.txt
+++ b/docs/requirements-django-1.6-mysql.txt
@@ -1,3 +1,4 @@
 python-dateutil==1.5
 Django==1.6.7
 MySQL-python==1.2.5
+django-debug-toolbar
-- 
1.8.3.1



More information about the Patchwork mailing list