3 from base import Setting, SettingSet
\r
4 from forms import ImageFormWidget
\r
6 from django.utils.translation import ugettext_lazy as _
\r
7 from django.forms.widgets import Textarea
\r
9 BASIC_SET = SettingSet('basic', _('Basic settings'), _("The basic settings for your application"), 1)
\r
11 APP_LOGO = Setting('APP_LOGO', '/upfiles/logo.png', BASIC_SET, dict(
\r
12 label = _("Application logo"),
\r
13 help_text = _("Your site main logo."),
\r
14 widget=ImageFormWidget))
\r
16 APP_FAVICON = Setting('APP_FAVICON', '/m/default/media/images/favicon.ico', BASIC_SET, dict(
\r
17 label = _("Favicon"),
\r
18 help_text = _("Your site favicon."),
\r
19 widget=ImageFormWidget))
\r
21 APP_TITLE = Setting('APP_TITLE', u'OSQA: Open Source Q&A Forum', BASIC_SET, dict(
\r
22 label = _("Application title"),
\r
23 help_text = _("The title of your application that will show in the browsers title bar")))
\r
25 APP_SHORT_NAME = Setting(u'APP_SHORT_NAME', 'OSQA', BASIC_SET, dict(
\r
26 label = _("Application short name"),
\r
27 help_text = "The short name for your application that will show up in many places."))
\r
29 APP_KEYWORDS = Setting('APP_KEYWORDS', u'OSQA,CNPROG,forum,community', BASIC_SET, dict(
\r
30 label = _("Application keywords"),
\r
31 help_text = _("The meta keywords that will be available through the HTML meta tags.")))
\r
33 APP_DESCRIPTION = Setting('APP_DESCRIPTION', u'Ask and answer questions.', BASIC_SET, dict(
\r
34 label = _("Application description"),
\r
35 help_text = _("The description of your application"),
\r
38 APP_COPYRIGHT = Setting('APP_COPYRIGHT', u'Copyright OSQA, 2010. Some rights reserved under creative commons license.', BASIC_SET, dict(
\r
39 label = _("Copyright notice"),
\r
40 help_text = _("The copyright notice visible at the footer of your page.")))
\r
42 SUPPORT_URL = Setting('SUPPORT_URL', '', BASIC_SET, dict(
\r
43 label = _("Support URL"),
\r
44 help_text = _("The URL provided for users to get support. It can be http: or mailto: or whatever your preferred support scheme is."),
\r
47 CONTACT_URL = Setting('CONTACT_URL', '', BASIC_SET, dict(
\r
48 label = _("Contact URL"),
\r
49 help_text = _("The URL provided for users to contact you. It can be http: or mailto: or whatever your preferred contact scheme is."),
\r