Insert content from JSON into Django settings.py
Reason this release was yanked:
invalid
Project description
For use within Django.
settings.py module
substitute values
top of settings.py file
The JSON file can contain any name:value pair
and any number of them.
Guarded Settings reads the JSON file
named guardedsettings.json and creates
a Python dictionary.
Use the dictionary name to obtain the value.
from UA_GuardedSettings import guardedsettings gs = guardedsettings.guardedsettings()
SECRET_KEY = gs.SettingsDictionary['SecretKey']
DATABASES
'PASSWORD' : gs.SettingsDictionary['databasePassword'],
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file UA_GuardedSettings-0.4.0.tar.gz.
File metadata
- Download URL: UA_GuardedSettings-0.4.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a0399c65a439a867b473db3da085bb72b05b43f1c670f40105abbcf8691df1e
|
|
| MD5 |
ec229483889dbdbe8fce30e3d6c28251
|
|
| BLAKE2b-256 |
300251b4bb7942b691eef985c500db79d85778dc965b619bbfcb312ff06cd0dc
|
File details
Details for the file ua_guardedsettings-0.4.0-py3-none-any.whl.
File metadata
- Download URL: ua_guardedsettings-0.4.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f37bd0337637830635dff65c89d7f941dbbb350658269263fcaeba953b427b10
|
|
| MD5 |
a621f8bdbcab613eeae4ec6b26490a8f
|
|
| BLAKE2b-256 |
adb6d933f735aa38bed6c7b4a59822acf06f440691242208e2743c39ecfbca6f
|