JSON secrets to Django settings module
Project description
JSON secrets to Django settings module
Setup
install it via pip install django-json-secrets
Usage
Setup ‘SECRET_DIR’ to settings module
SECRETS_DIR = os.path.join(ROOT_DIR, '.secrets')
Import library function
from djs import import_secrets
Execute function
import_secrets()
If there is a Python module needed to eval() the value of the secrets, define it in SECRETS_MODULES
import requests SECRETS_MODULES = { 'raven': 'raven', 'requests': requests, }
Contributing
As an open source project, we welcome contributions.
The code lives on github.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-json-secrets-0.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 136495eabf8625a0a2aa705ea31c485c0961b25c8cb02e006da620cd4bd8a077 |
|
MD5 | 1b37903c9aceb3c5bd784f7958a10f0c |
|
BLAKE2b-256 | 6fcee77f152c4676e35a3b7c2db587447d7aa13c60493f9280069ab11e32c43d |