Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

django-tracepanel

See what your Django app is really doing. Tracepanel records each request, Celery task and management command of your Django app with its SQL queries, cache calls, templates, signals, emails, logs and errors. It points out N+1 queries, duplicate queries, slow SQL and long transactions, and names the line of code to fix.

Swagger UI with the panel docked under it: the requests made with Try it out, and the call tree of one with two N+1 queries

This package has no code of its own. It installs tracepanel with Django support, the same as pip install "tracepanel[django]".

pip install django-tracepanel

Setup

Add the app to your settings. It is on whenever DEBUG = True.

# settings.py
INSTALLED_APPS += ["tracepanel.django"]

To leave the settings as they are, start the server through tracepanel run instead. It turns Tracepanel on even with DEBUG = False.

tracepanel run python manage.py runserver

Open any page and click the badge in the corner to open the panel. The console is at /__tracepanel__/.

What it looks like

The panel also lists the requests your pages and tools make with fetch(), here Swagger UI's Try it out. Each issue comes with its fix in Django's terms, such as the select_related() that removes an N+1:

The Issues tab of an API request made from Swagger UI: an N+1 with where it comes from and the fix

The console shows every endpoint over time, with the slowest and the failing ones:

The console's HTTP page: requests and latency over time, the slowest and the failing endpoints

Work without a page, such as Celery tasks, has its own pages:

The console's Tasks page: runs and latency over time, the slowest and the failing tasks

Supported versions

Django 5.2, 6.0 and 6.1 on Python 3.11 and newer. Django 6.x needs Python 3.12 or newer, and Python 3.15 runs with Django 6.1.

Documentation

The documentation lives in docs/, built with MkDocs and Material. uv run poe docs serves it at http://127.0.0.1:8000/, and uv run poe docs-build builds it the way CI does.

License

Licensed under the MIT License.

Metadata

Release files for django-tracepanel 0.0.1a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-tracepanel 0.0.1a1
File Size Uploaded
django_tracepanel-0.0.1a1.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-tracepanel 0.0.1a1
File Interpreter ABI Platform
django_tracepanel-0.0.1a1-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / django_tracepanel-0.0.1a1.tar.gz

Download URL django_tracepanel-0.0.1a1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3ffd92530cc59174ce4c316e3d7c3529dc295805520ff2383c49cf67de6a79d8
BLAKE2b-256 checksum
How to use checksums
dc06b315ee470f89785b60041e855b712d3275b3fd22644960e66732d4c18996
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / django_tracepanel-0.0.1a1-py3-none-any.whl

Download URL django_tracepanel-0.0.1a1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf54099579d389e667a839e2120b4f7acd7c9f2bbe14108f03876d61068cc2a2
BLAKE2b-256 checksum
How to use checksums
3a1085efb75b3808684cf47c08d5e9e93f590de4319d8d24a3d9b7d60ff54fa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

This release

0.0.1a1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page