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!

Globally censor a set of default variable names in your Django error reports

Project Description

extra_sensitive_variables is a third-party exception filter for Django. This allows you to globally censor a set of default variable names in Django’s error reports regardless of a function’s lack of @sensitive_* decorators. Basically, any variable matching the names provided in settings.EXTRA_SENSITIVE_VARIABLES or settings.EXTRA_SENSITIVE_POST_PARAMETERS will be censored.


  1. Install the package via pip

    pip install django-extra-sensitive-variables
  2. Tell Django to use the Extra Sensitive Variable filter by overriding DEFAULT_EXCEPTION_REPORTER_FILTER in your

    DEFAULT_EXCEPTION_REPORTER_FILTER = 'extra_sensitive_variables.ExtraSensitiveReporterFilter'
  3. Then add the following variables to your and modify them as you see fit

    # Variable names to always censor from "local vars" output
    EXTRA_SENSITIVE_VARIABLES = ['password', 'credentials']
    # Censor anything from the POST QueryDict matching these names
    EXTRA_SENSITIVE_POST_PARAMETERS = ['password', 'credentials', 'credit_card_number']

Release History

This version
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
(3.8 kB) Copy SHA256 Hash SHA256
Wheel 2.7 Feb 25, 2015
(2.6 kB) Copy SHA256 Hash SHA256
Source None Feb 25, 2015

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