Skip to main content
![django-devsafe](http://i.imgur.com/MhtKl25.gif)

django-devsafe
==============

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

```python
pip install django-devsafe
```

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

```python
INSTALLED_APPS = (
...
'devsafe',
)
```

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.

```python
DEVSAFE_FIELDS = ['secret_payment_token', 'secret_api_key']
```

3. Invoke devsafe!

```bash
python manage.py devsafe
```

Usage
----------

```bash
Usage: manage.py devsafe [options]

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

EXAMPLE:

/manage.py devsafe

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

```

Download files

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

Source Distribution

django-devsafe-0.3.0.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file django-devsafe-0.3.0.tar.gz.

File metadata

File hashes

Hashes for django-devsafe-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e310b69894a8ab256e395cac337c6abb433040125d20ead8c04dd028f8bad139
MD5 78a68c5c9f72cc6a93d54613f0ef0280
BLAKE2b-256 4788597623a9a02efb90e81902812b3fce0775cf70b0fbb216d8be6fb595189a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page