Django live settings with pluggable backends, including Redis. Leonardo Fork from Jannis Leidel
Project description
This is adopted version of standard library for Leonardo CMS.
Additionaly features:
boolean, numbers, strings, dictionaries
support for Django 1.8 +
basic grouping via CONSTANCE_CONFIG_GROUPS which makes tabs for django admin
access to config keys from standard django settings
really live settings, set every value to django settings and respect the default value from them
CONSTANCE_CONFIG = {
'MEDIA_ENABLED': (True, 'Help Text'),
'MEDIA_THUMBNAILS': ({
'SMALL': '64x64',
'MEDIUM': '265x265',
}, 'Help Text')
}
CONSTANCE_CONFIG_GROUPS = {'Group 1': {
MY_AWESOME_KEY: ('default', help text)
}
}
from django.conf import settings
settings.MY_AWESOME_KEY
settings.py
DEBUG = True
CONSTANCE_CONFIG_GROUPS = {'Group 1': {
DEBUG: (False, help text)
}
}
from django.conf import settings
settings.DEBUG
-> True
after setting up value in the admin to False:
from django.conf import settings settings.DEBUG -> False
A Django app for storing dynamic settings in pluggable backends (Redis and Django model backend built in) with an integration with the Django admin app.
For more information see the documentation at:
http://django-constance.readthedocs.org/
If you have questions or have trouble using the app please file a bug report at:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for leonardo-constance-1.0.0a.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3a0c880332ab9e06f2d79285c8c494cd7fa7f0a112db7b59a5881fb07969dad |
|
MD5 | b2c86dd0952b1c6986f1089864d990d7 |
|
BLAKE2b-256 | ffe61f97b51fd7a01c414d6ed82a79635ba42887626109527dff9a9ee9a359fc |