Safely work with a production database in an insecure environment.
Project description
![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.
```
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.
```
Project details
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.2.0.tar.gz
(3.6 kB
view details)
File details
Details for the file django-devsafe-0.2.0.tar.gz
.
File metadata
- Download URL: django-devsafe-0.2.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cc748c264a8caa87bcb87a8d13e0a5d8f78dafd76dcb77b4261db798b32b44d |
|
MD5 | 3b1ecaba107f43b48ef3ecd3759efadd |
|
BLAKE2b-256 | 952f0f89f2074e57215a208acb179f78b4adfa851f092c6eb1820ee9c6ab1b59 |