Skip to main content

Application for distribuited configurations in django

Project description

Application for distribuited configurations in django

1. Install django-hateconf in your enviroment (or copy this folder in your
django project root.
2. Add 'django_hateconf' in yours INSTALLED_APPS.
3. Add in your project's a dictionary "SETTINGS_BIND":

("list or tuple", "of names", "of existing", "vars in",
" to, bind),
"header of your settings file (optional)"

The keys

file: absolute path to the file that contains the variable binds
The file extention must be (case INsensitive):

* ".yml" or ".yaml" for YAML (< file
type. (pyyaml must be installed:

* ".json" for JSON ( file type.

* ".xml" for XML ( file type.

* ".cfg" or ".ini" for file consists of sections, lead by
a "[section]" header, and followed by "name: value"
entries, with continuations and such in the style of
RFC 822.

bind: List of EXISTING vars for binding.

header: Optional header for binds file.

4. Add in the end of file this 2 lines:

import django_hateconf

5. Run:
$ python settings --sync


For more usages see after the 6 steps:

python settings --help

Project details

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page