From 3c115c85cf8cea1d7083c2643043d556a4992131 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 27 Mar 2013 14:54:10 -0400 Subject: Add a context processor so BRANDING_* works in templaces --- settings.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'settings.py') diff --git a/settings.py b/settings.py index 998eefbd..c979d03f 100644 --- a/settings.py +++ b/settings.py @@ -54,6 +54,7 @@ TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.static', 'django.contrib.messages.context_processors.messages', 'main.context_processors.secure', + 'main.context_processors.branding', ) TEMPLATE_DIRS = ( @@ -138,6 +139,11 @@ PXEBOOT_URL = 'http://releng.archlinux.org/pxeboot/' # community bit on the end, repo.svn_root is appended) SVN_BASE_URL = 'svn://svn.archlinux.org/' +BRANDING_APPNAME = 'archweb' +BRANDING_DISTRONAME = 'Arch Linux' +BRANDING_SHORTNAME = 'Arch' +BRANDING_EMAIL = 'Arch Website Notification ' + ## Import local settings from local_settings import * @@ -156,8 +162,3 @@ if DEBUG_TOOLBAR: INSTALLED_APPS = list(INSTALLED_APPS) + [ 'debug_toolbar' ] # vim: set ts=4 sw=4 et: - -BRANDING_APPNAME = 'archweb' -BRANDING_DISTRONAME = 'Arch Linux' -BRANDING_SHORTNAME = 'Arch' -BRANDING_EMAIL = 'Arch Website Notification ' -- cgit v1.2.3