0Pricing
Django Academy · Lesson

Profiling with Debug Toolbar

Measure query count and timing.

Measure, Do Not Guess

The Django Debug Toolbar shows exactly how many queries a page runs, so you optimize with facts instead of hunches. 🔍

Install It

You add it with pip, just like any package. It is a development tool, so it never ships to production.

pip install django-debug-toolbar

All lessons in this course

  1. Spotting the N+1 Problem
  2. select_related for Foreign Keys
  3. prefetch_related for M2M
  4. Profiling with Debug Toolbar
← Back to Django Academy