Converted whole project to a smarter method of defining app settings
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
from django.conf import settings
|
||||
"""Configuration options for the web_theme app"""
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
#Theme options are:
|
||||
#amro, bec, bec-green, blue, default, djime-cerulean, drastic-dark,
|
||||
#kathleene, olive, orange, red, reidb-greenish, warehouse
|
||||
from main.api import register_settings
|
||||
|
||||
THEME = getattr(settings, 'WEB_THEME', 'default')
|
||||
ENABLE_SCROLL_JS = getattr(settings, 'WEB_THEME_ENABLE_SCROLL_JS', True)
|
||||
register_settings(
|
||||
namespace=u'web_theme',
|
||||
module=u'web_theme.conf.settings',
|
||||
settings=[
|
||||
{'name': u'THEME', 'global_name': u'WEB_THEME_THEME', 'default': u'default', 'description': _(u'CSS theme to apply, options are: amro, bec, bec-green, blue, default, djime-cerulean, drastic-dark, kathleene, olive, orange, red, reidb-greenish and warehouse.')},
|
||||
{'name': u'ENABLE_SCROLL_JS', 'global_name': u'WEB_THEME_ENABLE_SCROLL_JS', 'default': True, 'hidden': True},
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user