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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe398ed2c128f13df9eee81b0e4994d8821927c1879c660e4f3617b036b20561 |
|
MD5 | 74ffb314dc4acc0ffbf14355090d702e |
|
BLAKE2b-256 | 4ced8795ed08032f96089f5c7ab76ff7b1f271e01b79f9fe9cb2748020827ba3 |