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!

Safely work with a production database in an insecure environment.

Project Description



Safely work with a production database in an insecure environment. **django-devsafe** scrambles sensitive user data so that you don't accidentally expose the private information of your users during testing.

Quick start

0. Install django-devsafe

pip install django-devsafe

1. Add "devsafe" to your INSTALLED_APPS setting like this:


2. Optionally, you can use your settings file to define additional profile fields to scramble. Your User object must
have a **get_profile()** method to access these fields.

DEVSAFE_FIELDS = ['secret_payment_token', 'secret_api_key']

3. Invoke devsafe!

python devsafe


Usage: devsafe [options]

Scrambles your sensitive user data. By default, this just does email addresses and passwords. Omits superusers and staff.


/ devsafe

--dry Dry run, does not actually scramble data. Default
--quiet Be quiet. Default False.


Release History

This version
History Node


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
(3.7 kB) Copy SHA256 Hash SHA256
Source None May 6, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers