Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Django app that tracks all user requests.

Project Description

Django app that tracks all user requests and saves following data to database:

  • user
  • request method
  • response status code
  • IP address
  • URL path
  • GET parameters
  • POST data
  • session
  • language code
  • timezone
  • content type
  • user agent
  • response content (if internal server error occures)
  • is_secure flag
  • is_ajax flag
  • is_debug flag
  • created and modified timestamps

Tested on Django 1.4.5 and Django 1.8.3

Requirements

  • Django

Installation

  1. Install python library using pip: pip install django-detective
  2. Add detective to INSTALLED_APPS in your Django settings file
  3. Add detective.middleware.TrackingMiddleware to MIDDLEWARE_CLASSES in your Django settings file
  4. Include detective.urls in your urls.py with detective namespace
  5. Sync your database

Settings

DETECTIVE_SAVE_RESPONSES
If True, response data will be saved in database. Default: False.
DETECTIVE_SAVE_ERROR_RESPONSES
If True, internal server error responses with exception (500) are stored in database. Default: True.
DETECTIVE_TRACK_AJAX_REQUESTS
If False, ajax requests won’t be tracked. Default: True.
DETECTIVE_TRACK_ANONYMOUS_REQUESTS
If False, anonymous requests won’t be tracked. Default: True.

Authors

Library is by Erik Telepovsky from Pragmatic Mates. See our other libraries.

Release History

Release History

This version
History Node

0.6.3

History Node

0.6.2

History Node

0.6.1

History Node

0.6.0

History Node

0.5.1

History Node

0.5.0

History Node

0.4.1

History Node

0.4.0

History Node

0.3.1

History Node

0.3.0

History Node

0.2.0

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-detective-0.6.3.tar.gz (6.1 kB) Copy SHA256 Checksum SHA256 Source Jan 5, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting