Skip to content

ENERGYLINX/django-debug-toolbar-requests

Repository files navigation

django-debug-toolbar-requests

A Django Debug Toolbar panel for most popular http library requests.

About

This is a panel for Django Debug Toolbar that displays requests http queries, data headers and stack trace.

Installation

Install django-debug-toolbar-requests

$ pip install django-debug-toolbar-requests

Add library into your django settings.py

INSTALLED_APPS = (
   ...
   'requests_toolbar',
   ...
)

Add panel into DEBUG_TOOLBAR_PANELS

DEBUG_TOOLBAR_PANELS = (
   ...
   'requests_toolbar.panels.RequestsDebugPanel',
   ...
)

Example

Now always if you're will use requests then you will see debug information in your Django Debug Toolbar.

requests.get('https://httpbin.org/get', headers={'X-headers': 'value of x header'})

Screenshot

Screenshot

About

A Django Debug Toolbar panel for most popular http library requests.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published