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, Redis commands, outgoing HTTP calls, templates, signals, emails, logs and errors. It points out N+1 queries and calls, duplicates, slow SQL and slow HTTP calls, and long transactions, and names the line of code to fix.
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 console shows every endpoint over time, with the slowest and the failing ones:
Work without a page, such as Celery tasks, has its own pages:
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 is at tracepanel.dev/docs/django: what Tracepanel records in Django, its settings, workers and commands. The panel, the console and the issues are the same in every framework, under tracepanel.dev/docs.
License
Licensed under the MIT License.
Metadata
Release files for django-tracepanel 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_tracepanel-0.3.1.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_tracepanel-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / django_tracepanel-0.3.1.tar.gz
| Download URL | django_tracepanel-0.3.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eabcb3e230a5f8b56cb645ad0dcc918adc0e3e33ba648de99526a26878386532
|
|
BLAKE2b-256 checksum How to use checksums |
610fdb2fbe417db00ea40faded147f3a9843a16eb00680afb35d1882738706e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.3.1-py3-none-any.whl
| Download URL | django_tracepanel-0.3.1-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
960177a5a553b330a4f15857caee6ea26ac4f05d84b6f9aac48720cbee16a386
|
|
BLAKE2b-256 checksum How to use checksums |
ef36a5e44dc708360267779d62467ad184901fd07e4670f2d913c9257c767902
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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}
|