django-debug-toolbar-request-history

raw JSON →
0.1.4 verified Fri May 01 auth: no python

Adds a panel to Django Debug Toolbar that shows the request history, allowing you to inspect past requests during development. Currently at version 0.1.4 with no active maintenance.

pip install django-debug-toolbar-request-history
error ModuleNotFoundError: No module named 'debug_toolbar_request_history'
cause The app is not installed or not added to INSTALLED_APPS.
fix
Add 'debug_toolbar_request_history' to INSTALLED_APPS in settings.py.
error ImproperlyConfigured: debug_toolbar_request_history.panels.RequestHistoryPanel is not a valid panel ID
cause The panel is not correctly registered in DEBUG_TOOLBAR_PANELS.
fix
Ensure the panel string is exactly 'debug_toolbar_request_history.panels.RequestHistoryPanel'.
gotcha This package is not actively maintained and has not been updated to support the latest Django Debug Toolbar versions (4.x). You may encounter compatibility issues.
fix Pin django-debug-toolbar to version 3.x, or fork the package.
gotcha The request history panel stores all requests in memory, which can cause memory growth during long development sessions with many requests.
fix Clear the panel's data periodically or limit the number of stored requests via settings.

Add the app and panel to Django settings.

# settings.py
INSTALLED_APPS = [
    ...
    'debug_toolbar',
    'debug_toolbar_request_history',
]

DEBUG_TOOLBAR_PANELS = [
    'debug_toolbar.panels.versions.VersionsPanel',
    'debug_toolbar.panels.timer.TimerPanel',
    ...
    'debug_toolbar_request_history.panels.RequestHistoryPanel',
]

# Add to middleware (after debug_toolbar)
MIDDLEWARE = [
    ...
    'debug_toolbar.middleware.DebugToolbarMiddleware',
]