django-settings-json
Sample settings.json file:
{
"DEBUG": true,
"TIME_ZONE": "America/New_York"
}
Usage
Use get_setting() when retrieving environment variables on your settings.py file:
from settings_json import get_setting
DEBUG = get_setting('DEBUG')
TIME_ZONE = get_setting('TIME_ZONE')
GitIgnore
Remember to add settings.json into your .gitignore, so it don't get tracked.
settings.json
Missing Variables
If you forget to add a variable on your settings.json, it'll raise an error like the one below:
Set the TIME_ZONE environment variable on settings.json
Metadata
Release files for django-settings-json 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-settings-json-1.0.3.tar.gz | 2.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_settings_json-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 kB
Release files / django-settings-json-1.0.3.tar.gz
| Download URL | django-settings-json-1.0.3.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53020e1d33753c7b62ba5bfd4e8488c849ece666ac2366cb857e24c7b49b88dc
|
|
BLAKE2b-256 checksum How to use checksums |
70ecd474d1e54671d84d93f79e14c32ebb313cfbc098fc38d6e0202d7bf9cbd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / django_settings_json-1.0.3-py3-none-any.whl
| Download URL | django_settings_json-1.0.3-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52b3ee0a914664f3f3f39b61308339a43727c71e23ce818451504a0e80f6d637
|
|
BLAKE2b-256 checksum How to use checksums |
ef93bd829a408ce78352aad82a629c6a921f5abed7c2f4f58e2386bf752be942
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for django-settings-json 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.