From a90e6e3243d7804d9a92fca0f6b60ef467091044 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Mon, 2 Apr 2012 14:11:23 -0400 Subject: [PATCH] Disable profiler in django-debug-toolbar to avoid duplicate request bug --- settings2/dev.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/settings2/dev.py b/settings2/dev.py index e04e62b687..1a62eaf382 100644 --- a/settings2/dev.py +++ b/settings2/dev.py @@ -62,7 +62,12 @@ DEBUG_TOOLBAR_PANELS = ( 'debug_toolbar.panels.sql.SQLDebugPanel', 'debug_toolbar.panels.signals.SignalDebugPanel', 'debug_toolbar.panels.logger.LoggingPanel', - 'debug_toolbar.panels.profiling.ProfilingDebugPanel', # Lots of overhead + +# Enabling the profiler has a weird bug as of django-debug-toolbar==0.9.4 and +# Django=1.3.1/1.4 where requests to views get duplicated (your method gets +# hit twice). So you can uncomment when you need to diagnose performance +# problems, but you shouldn't leave it on. +# 'debug_toolbar.panels.profiling.ProfilingDebugPanel', ) ############################ FILE UPLOADS (ASKBOT) #############################