Capture Django HTTP requests & responses for debugging
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/wiretap
testproject
.gitignore
.travis.yml
LICENSE
MANIFEST.in
README.rst
screenshot-list.png
screenshot-view.png
setup.py
tox.ini

README.rst

Django Wiretap

Captures HTTP requests & responses for debugging.

This is an early release, and is not suitable for production use.

CILink

Screenshots

List

https://raw.githubusercontent.com/nathforge/django-wiretap/master/screenshot-list.png

View

https://raw.githubusercontent.com/nathforge/django-wiretap/master/screenshot-view.png

Usage:

  • Install the package with pip install django-wiretap
  • Edit Django settings:
    • Add 'wiretap' to INSTALLED_APPS.
    • Add 'wiretap.middleware.WiretapMiddleware' to your MIDDLEWARE_CLASSES.
  • Create models with ./manage.py syncdb
  • Go to Django admin, add a new Tap.
    • This contains a path regex, which is matched against the full path including the query string.
      • For example, to capture everything within the /api/ path of your site, use '^/api/'.
      • If you just want to test Wiretap, set it to '/'.

HTTP request/responses will now be saved to the Message admin page.

Note that Wiretap will be disabled if Django is not in debug mode.