2 from base import Setting, SettingSet, BaseSetting
4 from django.forms.widgets import Textarea
5 from django.utils.translation import ugettext_lazy as _
6 from django.conf import settings as djsettings
7 from django.utils.version import get_svn_revision
9 from forum.modules import get_modules_script_implementations
11 OSQA_VERSION = "Development Build"
13 SVN_REVISION = get_svn_revision(djsettings.SITE_SRC_ROOT)
15 # We'll have to keep in mind this variable on every release.
16 if SVN_REVISION == u'SVN-unknown':
17 SVN_REVISION = u'SVN-1000'
19 MAINTAINANCE_MODE = Setting('MAINTAINANCE_MODE', None)
21 SETTINGS_PACK = Setting('SETTINGS_PACK', "default")
22 DJSTYLE_ADMIN_INTERFACE = Setting('DJSTYLE_ADMIN_INTERFACE', True)
23 NODE_MAN_FILTERS = Setting('NODE_MAN_FILTERS', [])
25 APP_URL = djsettings.APP_URL
26 APP_BASE_URL = djsettings.APP_BASE_URL
27 FORCE_SCRIPT_NAME = djsettings.FORCE_SCRIPT_NAME
28 OSQA_SKIN = djsettings.OSQA_DEFAULT_SKIN
29 LANGUAGE_CODE = djsettings.LANGUAGE_CODE
30 ADMIN_MEDIA_PREFIX = djsettings.ADMIN_MEDIA_PREFIX
31 ONLINE_USERS = Setting('ONLINE_USERS', {})
46 from moderation import *
51 from sitemaps import *
53 __all__ = locals().keys()
55 # Be able to import all module settings as well
56 for k,v in get_modules_script_implementations('settings', BaseSetting).items():
62 BADGES_SET = SettingSet('badges', _('Badges config'), _("Configure badges on your OSQA site."), 500)