项目作者: ENERGYLINX

项目描述 :
A Django Debug Toolbar panel for most popular http library requests.
高级语言: Python
项目地址: git://github.com/ENERGYLINX/django-debug-toolbar-requests.git
创建时间: 2017-03-31T11:54:46Z
项目社区:https://github.com/ENERGYLINX/django-debug-toolbar-requests

开源协议:BSD 3-Clause "New" or "Revised" License

下载


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

  1. $ pip install django-debug-toolbar-requests

Add library into your django settings.py

  1. INSTALLED_APPS = (
  2. ...
  3. 'requests_toolbar',
  4. ...
  5. )

Add panel into DEBUG_TOOLBAR_PANELS

  1. DEBUG_TOOLBAR_PANELS = (
  2. ...
  3. 'requests_toolbar.panels.RequestsDebugPanel',
  4. ...
  5. )

Example

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

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

Screenshot

Screenshot