Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

UA_GuardedSettings-0.4.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ua_guardedsettings-0.4.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

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

Hashes for UA_GuardedSettings-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0a0399c65a439a867b473db3da085bb72b05b43f1c670f40105abbcf8691df1e
MD5 ec229483889dbdbe8fce30e3d6c28251
BLAKE2b-256 300251b4bb7942b691eef985c500db79d85778dc965b619bbfcb312ff06cd0dc

See more details on using hashes here.

File details

Details for the file ua_guardedsettings-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ua_guardedsettings-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f37bd0337637830635dff65c89d7f941dbbb350658269263fcaeba953b427b10
MD5 a621f8bdbcab613eeae4ec6b26490a8f
BLAKE2b-256 adb6d933f735aa38bed6c7b4a59822acf06f440691242208e2743c39ecfbca6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page