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

Django middleware that displays debug tracebacks on production sites (where you would have `DEBUG = False`) only to developers.

Project Description

This is a middleware that displays debug tracebacks on production sites (where you would have DEBUG = False) only to developers. Developers have to install a special userscript to decode the traceback data. AES-256 (CBC mode) is used to encrypt the traceback. The decode key and client key are hashes of your SECRET_KEY with salts so your SECRET_KEY is safe even if your userscript gets in the wrong place.

Google Chrome and Firefox are supported. If you want to use something else you have to find a way to install the userscript yourself.

There’s also a decode page in the admin in case you get user reports with the encrypted data.

The error page and decrypt flow looks like this:

Installation guide

Install it:

pip install django-monkey-team

Change your Django project settings to have:

DEBUG = False

Note, that if you want DEBUG = True and still have the middleware on you need to set:


Then go to django admin and install the userscript. The setup page looks like this:


PyCrypto is required.

The project has been tested on Django 1.3, 1.4, 1.5 and trunk with Python 2.6 and 2.7.

Release History

This version
History Node


History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(70.3 kB) Copy SHA256 Hash SHA256
Source None Mar 7, 2013

Supported By

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 Google Google Cloud Servers DreamHost DreamHost Log Hosting