Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nocarryr/django-safe-project
Uses django project template to keep sensitive data out of global settings
https://github.com/nocarryr/django-safe-project
Last synced: 2 months ago
JSON representation
Uses django project template to keep sensitive data out of global settings
- Host: GitHub
- URL: https://github.com/nocarryr/django-safe-project
- Owner: nocarryr
- License: mit
- Created: 2015-12-18T18:28:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-02T19:04:39.000Z (almost 9 years ago)
- Last Synced: 2024-10-20T12:26:43.821Z (2 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/nocarryr/django-safe-project.svg?branch=master)](https://travis-ci.org/nocarryr/django-safe-project)
# 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](https://github.com/nocarryr/django-safe-project/releases/latest) and install by running:
```
python setup.py install
```## Usage
When installed, call
```
django-safe-project
```
instead of
```
django-admin startproject
```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