skillfed

django-debug-toolbar

A configurable set of panels that display various debug information about the current request/response.

django-debug-toolbar v7.1.1 9.0M downloads/30d#1,568 on PyPI8,377
Permissive license BSD-3-Clause Active released

What it is and what it does

Django Debug Toolbar is a browser-injected debugging interface for Django applications that displays configurable panels showing request/response metadata, SQL queries, cache behavior, and other diagnostic information. It runs only during development when DEBUG is enabled and appears as an overlay in the browser, allowing developers to inspect details about each HTTP request without leaving the application.

The toolbar is built as a Django middleware and URL configuration that intercepts requests and collects telemetry. It depends on django and sqlparse for SQL query formatting. The package is production-stable (version 7.1.1), actively maintained, and supports current Django versions (5.2, 6.0, 6.1) and Python 3.10 through 3.14. It has experimental support for Django's async views but does not yet handle concurrent requests.

Use it for:

  • Inspect SQL queries executed during a request to identify N+1 problems and optimize database access.
  • Debug template rendering, context variables, and view execution flow during development.
  • Profile request/response timing and middleware execution to find performance bottlenecks.
  • Monitor cache hits/misses and HTTP header behavior during development iteration.
  • Examine signal dispatch and form validation errors in real time without adding print statements.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Displays debug information panels in Django applications during development, showing request/response details, SQL queries, and other diagnostic data directly in the browser.

Yes. This is a standard, low-friction development tool for Django projects. It has no security vulnerabilities, permissive licensing, minimal dependencies, and active maintenance. Install it in your development environment to gain visibility into request handling, SQL queries, and performance without modifying application code.

Install

django-debug-toolbar on PyPI

pip

pip install django-debug-toolbar

uv

uv add django-debug-toolbar

poetry

poetry add django-debug-toolbar

Installing django-debug-toolbar

Before you install

Low friction installation with only two runtime dependencies (django and sqlparse). The package is actively maintained with a recent release and 8377 repository stars, indicating stable, community-backed development.

License in practice

Released under BSD-3-Clause, a permissive open-source license. You can use, modify, and distribute this package freely in both commercial and private projects with minimal restrictions.

Quickstart

pip install django-debug-toolbar

# In Django settings.py:
INSTALLED_APPS = [
    'debug_toolbar',
    # ...
]

MIDDLEWARE = [
    'debug_toolbar.middleware.DebugToolbarMiddleware',
    # ...
]

# In urls.py:
if DEBUG:
    urlpatterns += [
        path('__debug__/', include('debug_toolbar.urls')),
    ]

Requires Django ≥ 5.2.0 and Python ≥ 3.10. Only intended for development (DEBUG=True); do not deploy to production.

Verify before relying

  • Extent of third-party panel ecosystem and how to discover/install community-contributed panels.
  • Performance impact of running the toolbar on development server response times.
  • Current state of async view support beyond 'experimental' label and whether concurrent request handling has been added.

Package facts

License BSD-3-Clause (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — django, sqlparse
Maintenance actively maintained — 0 days since the last release
Last repo commit
First released
Downloads 9,003,980/month — #1,568 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: django_debug_toolbar-7.1.1-py3-none-any.whl

Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 5.2Framework :: Django :: 6.0Framework :: Django :: 6.1Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules

Tags

django debug toolbardjango development debuggingdjango request inspectiondjango sql query profilingdjango performance debuggingdjango development panelsdjango request response debug
django-developmentdebugging-profilingweb-framework

More Python Modules packages

idna

Converts domain names between Unicode and…

permissive · top 100 on PyPI

setuptools

Setuptools is a Python build backend and…

permissive · top 100 on PyPI

PyYAML

PyYAML parses and emits YAML 1.1 data format,…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

annotated-types

Provides reusable metadata objects for use with…

permissive · top 100 on PyPI

typing-inspection

Provides runtime tools to inspect and…

permissive · top 100 on PyPI

django-debug-toolbar-template-profiler

Adds a debug panel to django-debug-toolbar that…

permissive · top 15,000 on PyPI

django-graphiql-debug-toolbar

Integrates Django Debug Toolbar into the…

permissive · top 15,000 on PyPI

Flask-DebugToolbar

Flask-DebugToolbar injects a debugging sidebar…

permissive · top 5,000 on PyPI

requests-tracker

A Django development middleware that collects…

permissive · top 15,000 on PyPI

aiohttp-debugtoolbar

Adds an interactive debug toolbar to aiohttp…

permissive · top 15,000 on PyPI

djdt-flamegraph

Integrates flame graph visualization into…

permissive · top 15,000 on PyPI

django-debug-toolbar-template-timings

A Django Debug Toolbar panel that measures and…

unclear · top 15,000 on PyPI

pyramid-debugtoolbar

Pyramid_debugtoolbar injects an interactive…

permissive · top 5,000 on PyPI

django-health-check

Provides pluggable health check endpoints for…

permissive · top 5,000 on PyPI

django-querycount

Django middleware that logs the number of…

permissive · top 15,000 on PyPI