1. Juan Cabral
  2. django-hateconf


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 settings.py INSTALLED_APPS.

3. Add in your project's settings.py a dictionary "SETTINGS_BIND":

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

    file: absolute path to the file that contains the variable binds for
    settings.py. The file extention must be (case INsensitive):
        .yml or .yaml for YAML (http://yaml.org/) file type (pyyaml must be
        installed: http://pyyaml.org/).
        .json for JSON (http://www.json.org/) file type.
        .xml for XML (http://www.w3.org/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 settings.py vars for binding.
    header: Optional header for binds file.
4. Add in the end of settings.py file this 2 lines:

     import django_hateconf

5. Run:

    $ python manage.py settings --sync

For more usages see after the 6 steps:

    python manage.py settings --help