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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b472b509aa26c30d3210f8678b4c3a703f3ff965d8c7e1b4ee9c3d77e4d3b15 |
|
MD5 | 6a5468259e1d9e9935f9056abbc35725 |
|
BLAKE2b-256 | 46239763709e1714b4a8aa176a4ef5afd64a0d2db5d42f9bfb3e9569ca3eba60 |
Hashes for django_safe_project-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1266f8937cfd26a7d11bc2fb47d283ab3c3441b874869daf46bcee6bf9633d57 |
|
MD5 | d81b758578f9d6e977022ada16446a79 |
|
BLAKE2b-256 | 3dd1f7e8e258fd321b571af9e38a723e819e2fa7c4d5e47baac890f9261c0f4c |