requests-tracker
The Django Requests Tracker is designed for local Django development, particularly for Rest API development. It provides various debugging information, such as SQL queries, headers, and status codes.
What it is and what it does
Django Requests Tracker is a development-only middleware for Django that intercepts and logs HTTP requests, responses, and database activity. It displays a searchable, sortable list of all requests sent to your application, showing HTTP method, path, view name, status code, query count, and execution time. Clicking into any request reveals detailed information: all SQL queries executed in that request's context with execution times and stacktraces, request and response headers, and the current Django settings (with sensitive values masked). It identifies common ORM problems like N+1 queries by labeling similar and duplicate queries.
The tool is designed specifically for REST API development and local debugging—it only activates in DEBUG mode and only for requests from INTERNAL_IPS. It depends on django and sqlparse, making installation straightforward. Configuration is optional and includes patterns to ignore certain paths or SQL queries, stacktrace display toggles, and SQL performance thresholds. The interface is web-based and accessed via a dedicated URL path in your project.
Use it for:
- Debug N+1 query problems by viewing duplicate and similar query labels in request details.
- Inspect SQL execution times and stacktraces to identify slow or unexpected database calls during API development.
- Search and filter requests by path, view name, headers, or SQL content to isolate problematic endpoints.
- View masked Django settings in the running process to verify environment variables and configuration logic.
- Monitor request/response headers and status codes across multiple API calls without leaving the browser.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Django development middleware that collects and displays HTTP requests, responses, SQL queries, headers, and settings for debugging REST APIs during local development.
Yes, if you are actively developing a Django REST API locally. The tool is lightweight, low-friction to install, and provides valuable debugging insights for SQL and request inspection. However, maintenance is dormant (last release November 2023, last commit April 2024), so verify compatibility with your Django version before relying on it for new projects. Not suitable for production use.
Install
requests-tracker on PyPI
pip
pip install requests-trackeruv
uv add requests-trackerpoetry
poetry add requests-trackerInstalling requests-tracker
Before you install
Low friction install with only django and sqlparse as dependencies. Maintenance is dormant—last commit was 2024-04-18 and no releases since 2023-11-04—but the repository remains active and supports current Python versions (3.8–3.12).
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely with minimal restrictions, making it safe for both commercial and open-source projects.
Quickstart
pip install requests-tracker
# In settings.py (DEBUG mode only)
INSTALLED_APPS += ["requests_tracker"]
MIDDLEWARE += ["requests_tracker.middleware.requests_tracker_middleware"]
INTERNAL_IPS = ["127.0.0.1"]
# In urls.py
if settings.DEBUG:
urlpatterns += [path("__requests_tracker__/", include("requests_tracker.urls"))]
Requires django.contrib.staticfiles in INSTALLED_APPS and DjangoTemplates backend with APP_DIRS=True; intended for DEBUG mode only.
Verify before relying
- Whether the tool works with async Django views and ASGI servers beyond the optional static file configuration mentioned.
- Current compatibility with Django versions released after 2023-11-04 (the latest release date).
- Performance impact of tracking all requests and SQL queries in a production-like development environment.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8,<4.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — django, sqlparse |
| Maintenance | dormant — 1,014 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 109,292/month — #12,520 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: requests_tracker-0.3.3-py3-none-any.whl
Keywords: django, python, sql, middlware, api, rest, debug, htmx, django-rest-framework, django-ninja, requests-tracker, django-requests-tracker, development
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
django-querycountDjango middleware that logs the number of…
permissive · top 15,000 on PyPI
django-queryinspectDjango middleware that logs and reports SQL…
permissive · top 15,000 on PyPI
django-debug-toolbarDisplays debug information panels in Django…
permissive · top 5,000 on PyPI
django-graphiql-debug-toolbarIntegrates Django Debug Toolbar into the…
permissive · top 15,000 on PyPI
django-debug-toolbar-template-profilerAdds a debug panel to django-debug-toolbar that…
permissive · top 15,000 on PyPI
django-silkSilk intercepts and profiles HTTP requests,…
permissive · top 5,000 on PyPI
drf-api-loggerCaptures and logs Django REST Framework API…
permissive · top 15,000 on PyPI
Flask-DebugToolbarFlask-DebugToolbar injects a debugging sidebar…
permissive · top 5,000 on PyPI
py-jama-rest-clientA Python REST API client for Jama Connect that…
permissive · top 15,000 on PyPI
aiohttp-debugtoolbarAdds an interactive debug toolbar to aiohttp…
permissive · top 15,000 on PyPI