Skip to main content

A Django middleware for record http request and response in debug

Project description

=====
Django http monitor
=====

Django http monitor is a Django middleware for record http request and response in debug

Quick start
-----------

1. Add "http_monitor" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = [
...
'http_monitor',
]

2. Include the polls URLconf in your project urls.py like this::

url(r'^http_monitor/', include('http_monitor.urls')),

3. Add the HttpMonitorMiddleware for monitor request like this::

MIDDLEWARE_CLASSES = (
'apps.http_monitor.middleware.HttpMonitorMiddleware',
...
)

Note HttpMonitorMiddleware should be in top of the middlewares,
But GZipMiddleware will zip the content, so GZipMiddleware will be top.


4. Start the development server and visit http://127.0.0.1:8000/http_monitor/requests
(you'll need the Admin login status to see this)


Project details


Download files

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

Source Distribution

django-http-monitor-0.1.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

django_http_monitor-0.1.1-py2-none-any.whl (5.4 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page