Skip to main content

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

Project description

About

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.

Installation

pip install django-extra-sensitive-variables

Then add the following variables to your settings.py and modify them as you see fit:

EXTRA_SENSITIVE_VARIABLES = ['password', 'credentials']
EXTRA_SENSITIVE_POST_PARAMETERS = ['password', 'credentials', 'credit_card_number']

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-extra-sensitive-variables, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django_extra_sensitive_variables-1.0.1-py2.py3-none-any.whl (3.8 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size django-extra-sensitive-variables-1.0.1.tar.gz (2.6 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