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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-safe-project-0.0.6.tar.gz.
File metadata
- Download URL: django-safe-project-0.0.6.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d13bb0346607ffabfac596be283575fc9490f8b86aa892cfb3cc389765119b01
|
|
| MD5 |
57da4f93f1626e8e73db0fedc0501279
|
|
| BLAKE2b-256 |
af36923be25d3c752598ac048ac3a5acaada8e0304e46b2beba20c4848c259b2
|
File details
Details for the file django_safe_project-0.0.6-py2.py3-none-any.whl.
File metadata
- Download URL: django_safe_project-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1cb59f3248f3ad2377f7e7191f64c79f6b781a73414d29d282157ae1e1707e2
|
|
| MD5 |
47c816b19756e9b6b41f151fa5b5daa0
|
|
| BLAKE2b-256 |
cd2d7a81bd756fd118f10d73a9271b8557f98a8c23fa5db6774b1f7b345405c4
|