https://github.com/energylinx/django-debug-toolbar-requests
A Django Debug Toolbar panel for most popular http library requests.
https://github.com/energylinx/django-debug-toolbar-requests
django django-debug-toolbar requests
Last synced: 5 months ago
JSON representation
A Django Debug Toolbar panel for most popular http library requests.
- Host: GitHub
- URL: https://github.com/energylinx/django-debug-toolbar-requests
- Owner: ENERGYLINX
- License: bsd-3-clause
- Created: 2017-03-31T11:54:46.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-09-16T13:34:41.000Z (over 6 years ago)
- Last Synced: 2025-09-25T07:31:06.775Z (9 months ago)
- Topics: django, django-debug-toolbar, requests
- Language: Python
- Homepage:
- Size: 1.1 MB
- Stars: 16
- Watchers: 5
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
# django-debug-toolbar-requests
A Django Debug Toolbar panel for most popular http library [requests](http://docs.python-requests.org/en/master/).
# About
This is a panel for [Django Debug Toolbar](https://django-debug-toolbar.readthedocs.io/en/stable/index.html) that displays [requests](http://docs.python-requests.org/en/master/) http queries, data headers and stack trace.
### Installation
Install django-debug-toolbar-requests
```sh
$ pip install django-debug-toolbar-requests
```
Add library into your django `settings.py`
```python
INSTALLED_APPS = (
...
'requests_toolbar',
...
)
```
Add panel into `DEBUG_TOOLBAR_PANELS`
```python
DEBUG_TOOLBAR_PANELS = (
...
'requests_toolbar.panels.RequestsDebugPanel',
...
)
```
## Example
Now always if you're will use [requests](http://docs.python-requests.org/en/master/) then you will see debug information in your [Django Debug Toolbar](https://django-debug-toolbar.readthedocs.io/en/stable/index.html).
```python
requests.get('https://httpbin.org/get', headers={'X-headers': 'value of x header'})
```
## Screenshot
