Skip to main content

Request History Panel for Django Debug Toolbar

Project description

Request History Panel for Django Debug Toolbar

Adds a request history panel to [Django Debug Toolbar]( for viewing stats for different requests (with the option for ajax support).

### Install ###

pip install django-debug-toolbar-request-history

or for development version:

pip install git+

Add the panel to ```DEBUG_TOOLBAR_PANELS``` (see the config section for more details).

### Usage ###

Click on the "Request History" panel in the toolbar to load the available requests. Click on the request you are interested in (on the "Time" or "Path" part of the request) to load the toolbar for that request.

**Note:** currently requests do not survive server reload, therefore, when using the dev server old requests will not be available after a code change is loaded.

### Config (in ###

To ```DEBUG_TOOLBAR_PANELS``` add ```'ddt_request_history.panels.request_history.RequestHistoryPanel'``` e.g.:

'ddt_request_history.panels.request_history.RequestHistoryPanel', # Here it is

To record ajax requests add ```SHOW_TOOLBAR_CALLBACK``` to ```DEBUG_TOOLBAR_CONFIG``` e.g.:

'SHOW_TOOLBAR_CALLBACK': 'ddt_request_history.panels.request_history.allow_ajax',

To change the number of stored requests add ```RESULTS_STORE_SIZE``` to ```DEBUG_TOOLBAR_CONFIG``` e.g.:


### TODO ###
* Clean-up
* Change the storage to survive server reloads (maybe use cache or session).

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-debug-toolbar-request-history-0.0.4.tar.gz (6.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page