Skip to content

uchood/django_smart_settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

django_smart_settings

store and initialize from settings.py smart settings with ghrouping, types and descriptions django >=1.7

settings.py

INSTALLED_APPS = (
    ..,
    'smart_settings',
    ...
)

Setting from DEFAULT_SMART_OPTIONS will be copied to database at start server. If they already exist will nothing to do.

DEFAULT_SMART_OPTIONS = {
    'global': [
            {
                'key': 'int_1',
                'type_of_value': u'INT',
                'value': 0,
                'description': u'Description string int 1',
            },
            {
                'key': 'string_1',
                'type_of_value': u'STRING',
                'value': u'string one',
                'description': u'Description string 1',
            },
            {
                'key': 'float_1',
                'type_of_value': u'FLOAT',
                'value': 0.0,
                'description': u'Description float 1',
            },
        ]
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages