]> git.openstreetmap.org Git - osqa.git/blob - forum/settings/__init__.py
Remove footer link to squatted domain
[osqa.git] / forum / settings / __init__.py
1 import os.path
2 from base import Setting, SettingSet, BaseSetting
3
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_git_changeset
8
9 from forum.modules import get_modules_script_implementations
10
11 OSQA_VERSION = "Development Build"
12
13 VCS_REVISION = get_git_changeset()
14
15 # We'll have to keep in mind this variable on every release.
16 if VCS_REVISION == u'SVN-unknown':
17     VCS_REVISION = u'SVN-1000'
18
19 MAINTAINANCE_MODE = Setting('MAINTAINANCE_MODE', None)
20
21 SETTINGS_PACK = Setting('SETTINGS_PACK', "default")
22 DJSTYLE_ADMIN_INTERFACE = Setting('DJSTYLE_ADMIN_INTERFACE', True)
23 NODE_MAN_FILTERS = Setting('NODE_MAN_FILTERS', [])
24
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 ONLINE_USERS = Setting('ONLINE_USERS', {})
31
32
33 from basic import *
34 from sidebar import *
35 from email import *
36 from extkeys import *
37 from minrep import *
38 from repgain import *
39 from voting import *
40 from upload import *
41 from about import *
42 from faq import *
43 from form import *
44 from view import *
45 from moderation import *
46 from users import *
47 from static import *
48 from urls import *
49 from accept import *
50 from sitemaps import *
51
52 __all__ = locals().keys()
53
54 # Be able to import all module settings as well
55 for k,v in get_modules_script_implementations('settings', BaseSetting).items():
56    if not k in __all__:
57         __all__.append(k)
58         exec "%s = v" % k
59
60
61 BADGES_SET = SettingSet('badges', _('Badges config'), _("Configure badges on your OSQA site."), 500)
62
63