1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
"""
Q&A website settings - title, desctiption, basic urls
keywords
"""
from askbot.conf.settings_wrapper import settings
from askbot.conf.super_groups import CONTENT_AND_UI
from askbot.deps import livesettings
from django.utils.translation import ugettext_lazy as _
QA_SITE_SETTINGS = livesettings.ConfigurationGroup(
'QA_SITE_SETTINGS',
_('URLS, keywords & greetings'),
super_group = CONTENT_AND_UI
)
settings.register(
livesettings.StringValue(
QA_SITE_SETTINGS,
'APP_TITLE',
default=u'Askbot: Open Source Q&A Forum',
description=_('Site title for the Q&A forum')
)
)
settings.register(
livesettings.StringValue(
QA_SITE_SETTINGS,
'APP_KEYWORDS',
default=u'Askbot,forum,community',
description=_('Comma separated list of Q&A site keywords')
)
)
settings.register(
livesettings.StringValue(
QA_SITE_SETTINGS,
'APP_COPYRIGHT',
default='Copyright Askbot, 2010-2011.',
description=_('Copyright message to show in the footer')
)
)
settings.register(
livesettings.StringValue(
QA_SITE_SETTINGS,
'APP_DESCRIPTION',
default='Open source question and answer forum written in ' +\
'Python and Django',
description=_('Site description for the search engines')
)
)
settings.register(
livesettings.StringValue(
QA_SITE_SETTINGS,
'APP_SHORT_NAME',
default='Askbot',
description=_('Short name for your Q&A forum')
)
)
settings.register(
livesettings.StringValue(
QA_SITE_SETTINGS,
'APP_URL',
description=_(
'Base URL for your Q&A forum, must start with '
'http or https'
),
)
)
settings.register(
livesettings.BooleanValue(
QA_SITE_SETTINGS,
'ENABLE_GREETING_FOR_ANON_USER',
default = True,
description = _('Check to enable greeting for anonymous user')
)
)
settings.register(
livesettings.StringValue(
QA_SITE_SETTINGS,
'GREETING_FOR_ANONYMOUS_USER',
default='First time here? Check out the FAQ!',
hidden=False,
description=_(
'Text shown in the greeting message '
'shown to the anonymous user'
),
help_text=_(
'Use HTML to format the message '
)
)
)
settings.register(
livesettings.StringValue(
QA_SITE_SETTINGS,
'FEEDBACK_SITE_URL',
description=_('Feedback site URL'),
help_text=_(
'If left empty, a simple internal feedback form '
'will be used instead'
)
)
)
|