Skip to main content

Start Django projects with sensitive data outside of the global settings module

Project description

Build Status

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

django-safe-project-0.0.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

django_safe_project-0.0.2-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-safe-project-0.0.2.tar.gz.

File metadata

File hashes

Hashes for django-safe-project-0.0.2.tar.gz
Algorithm Hash digest
SHA256 018f98c6ab7e63b626b0275e08663ca5061838affef433a0b9d87a41230f427b
MD5 2530b56ebcaa553d7953c2b3d0a98299
BLAKE2b-256 3c4c264843c504592d6c2c9ef4bc9053c6e71c24d291e46d6d6f683ddcafd82e

See more details on using hashes here.

File details

Details for the file django_safe_project-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_safe_project-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5d49e483b12732546c4aa42d15ce8d3f1faa6968eed909fffd8c3841696d518e
MD5 1358af27587d8ee68252aa39307e94d6
BLAKE2b-256 96cf3c461e380e0f4af724eef8959b5fde438fc044dd6e0bd8c958be65669a79

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page