from forum import settings
from django.conf import settings as djsettings
+
def application_settings(context):
my_settings = {
'APP_TITLE' : settings.APP_TITLE,
'WIKI_ON':settings.WIKI_ON,
'OSQA_SKIN':djsettings.OSQA_DEFAULT_SKIN,
'APP_FAVICON':settings.APP_FAVICON,
+ 'OSQA_VERSION': settings.OSQA_VERSION,
+ 'ADMIN_MEDIA_PREFIX': djsettings.ADMIN_MEDIA_PREFIX,
+ 'SVN_REVISION': settings.SVN_REVISION,
}
return {'settings':my_settings}
from django.forms.widgets import Textarea
from django.utils.translation import ugettext_lazy as _
from django.conf import settings as djsettings
+from django.utils.version import get_svn_revision
-OSQA_VERSION = Setting('OSQA_VERSION', "Development Version")
+OSQA_VERSION = "Development Build"
+SVN_REVISION = get_svn_revision(djsettings.SITE_SRC_ROOT)
SETTINGS_PACK = Setting('SETTINGS_PACK', "default")
APP_URL = djsettings.APP_URL
FORUM_SCRIPT_ALIAS = djsettings.FORUM_SCRIPT_ALIAS