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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d13bb0346607ffabfac596be283575fc9490f8b86aa892cfb3cc389765119b01 |
|
MD5 | 57da4f93f1626e8e73db0fedc0501279 |
|
BLAKE2b-256 | af36923be25d3c752598ac048ac3a5acaada8e0304e46b2beba20c4848c259b2 |
Hashes for django_safe_project-0.0.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1cb59f3248f3ad2377f7e7191f64c79f6b781a73414d29d282157ae1e1707e2 |
|
MD5 | 47c816b19756e9b6b41f151fa5b5daa0 |
|
BLAKE2b-256 | cd2d7a81bd756fd118f10d73a9271b8557f98a8c23fa5db6774b1f7b345405c4 |