Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close
Application for distribuited configurations in django
usage:
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":

     SETTINGS_BIND = {
         "file":
             "path/to/settings.<yaml|yml|json|xml|cfg|ini>",
         "bind":
             ("list or tuple", "of names", "of existing", "vars in",
               "settings.py to, bind),
         "header":
             "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
     django_hateconf.patch(locals())

5. Run:

    $ python manage.py settings --sync
    
6. ENJOY!

For more usages see after the 6 steps:

    python manage.py settings --help

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.