diff options
Diffstat (limited to 'forum/context.py')
-rw-r--r-- | forum/context.py | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/forum/context.py b/forum/context.py index 47fb43f2..a5801302 100644 --- a/forum/context.py +++ b/forum/context.py @@ -1,25 +1,9 @@ from django.conf import settings from forum.conf import settings as forum_settings def application_settings(context): - my_settings = { - 'WIKI_ON':forum_settings.WIKI_ON, - 'APP_TITLE' : forum_settings.APP_TITLE, - 'APP_URL' : forum_settings.APP_URL, - 'APP_KEYWORDS' : forum_settings.APP_KEYWORDS, - 'APP_DESCRIPTION': forum_settings.APP_DESCRIPTION, - 'APP_COPYRIGHT': forum_settings.APP_COPYRIGHT, - 'FEEDBACK_SITE_URL': forum_settings.FEEDBACK_SITE_URL, - 'FORUM_ABOUT': forum_settings.FORUM_ABOUT, - 'FORUM_PRIVACY': forum_settings.FORUM_PRIVACY, - 'GOOGLE_SITEMAP_CODE':forum_settings.GOOGLE_SITEMAP_CODE, - 'GOOGLE_ANALYTICS_KEY':forum_settings.GOOGLE_ANALYTICS_KEY, - 'EMAIL_VALIDATION': forum_settings.EMAIL_VALIDATION, - 'RESOURCE_REVISION':forum_settings.MEDIA_RESOURCE_REVISION, - 'ASKBOT_SKIN':forum_settings.ASKBOT_DEFAULT_SKIN, - 'EDITABLE_SCREEN_NAME':forum_settings.EDITABLE_SCREEN_NAME, - 'FORUM_SCRIPT_ALIAS': settings.FORUM_SCRIPT_ALIAS, - 'LANGUAGE_CODE': settings.LANGUAGE_CODE, - } + my_settings = forum_settings.as_dict() + my_settings['LANGUAGE_CODE'] = settings.LANGUAGE_CODE + my_settings['FORUM_SCRIPT_ALIAS'] = settings.FORUM_SCRIPT_ALIAS return {'settings':my_settings} def auth_processor(request): |