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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85c5b0d93ead05d78c7f15c75a569a0eca53422957ec973c161d252562d38a00 |
|
MD5 | e6e914d64f50051314384e4824676d16 |
|
BLAKE2b-256 | b5758f5b9bad4625464560b8d657babb96458a1415a20a331db40ac08e4a7a83 |