Skip to main content

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


  • Django


  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 with detective namespace
  5. Sync your database


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


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

Project details

Download files

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

Files for django-detective, version 0.6.3
Filename, size File type Python version Upload date Hashes
Filename, size django-detective-0.6.3.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page