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-toolbarAll lessons in this course
- Spotting the N+1 Problem
- select_related for Foreign Keys
- prefetch_related for M2M
- Profiling with Debug Toolbar