Start Django projects with sensitive data outside of the global settings module
Project description
django-safe-project
Creates and uses the installed Django project template to keep sensitive data out of global settings.
Installation
To install django-safe-project run:
pip install django-safe-project
Or download the latest release here and install by running:
python setup.py install
Usage
When installed, call
django-safe-project <projectname>
instead of
django-admin startproject <projectname>
This will create a separate module in the project path named local_settings.py containing all the things you don’t want to ever place in any sort of VCS ever.
local_settings.py will then be gitignored and its contents imported into the main settings.py module.
Currently the list of settings this handles are:
SECRET_KEY (obviously)
DATABASES (duh!!!)
DEBUG
ALLOWED_HOSTS
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
Built Distribution
Hashes for django-safe-project-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 018f98c6ab7e63b626b0275e08663ca5061838affef433a0b9d87a41230f427b |
|
MD5 | 2530b56ebcaa553d7953c2b3d0a98299 |
|
BLAKE2b-256 | 3c4c264843c504592d6c2c9ef4bc9053c6e71c24d291e46d6d6f683ddcafd82e |
Hashes for django_safe_project-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d49e483b12732546c4aa42d15ce8d3f1faa6968eed909fffd8c3841696d518e |
|
MD5 | 1358af27587d8ee68252aa39307e94d6 |
|
BLAKE2b-256 | 96cf3c461e380e0f4af724eef8959b5fde438fc044dd6e0bd8c958be65669a79 |