Creates and uses the installed Django project template to keep sensitive data out of global settings.
pip install django-safe-project
Or download the latest release here and install by running:
python setup.py install
When installed, call
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
Currently the list of settings this handles are:
- SECRET_KEY (obviously)
- DATABASES (duh!!!)