Search code examples
djangodjango-debug-toolbar

Django debug-toolbar wildly inaccurate summary results


I am using django debug-toolbar on django 1.4. The problem is, it gives me incorrect summary results.

For example, on a landing page which produces one query (check to see if the user is logged in). DT says that there are 43 queries taking 17.27ms. However, when I actually click the SQL queries tab, it does show the correct result -- 1 query in 0.47ms.

Is DT incompatible with 1.4 or something, or is there a way to fix this?


Solution

  • It looks like this was a known issue according to github. I recently had exactly the same problem.

    https://github.com/django-debug-toolbar/django-debug-toolbar/issues/88

    I managed to resolve the issue by simply updating the django-toolbar to the latest version.