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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 422bbfed8bd68dccc8af588d19b7809a720e7025e94081835c9139c9c0370f96 |
|
MD5 | fd4f5cef30d2e515a5aaa6f536bdf29c |
|
BLAKE2b-256 | c7dc9ea2b467c3b4d7942653bd210f7fcefdea366769aa99565276ad542f8df6 |
Hashes for django_safe_project-0.0.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 850fe1963ad9d0aca1d7413824a6525b5d31297083ea65234f0c076c94cc5fe3 |
|
MD5 | da3dda63964554082be64e06b7158dc6 |
|
BLAKE2b-256 | 53b210c5c9fdf638bd114c361c12422fa6522ebc2db3f35ce4982808f6eea5fe |