summaryrefslogtreecommitdiff
path: root/settings.py
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-03-27 14:54:10 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-03-27 14:54:10 -0400
commit3c115c85cf8cea1d7083c2643043d556a4992131 (patch)
treeb05e47e732746eaff8d124b9f3b0bc920ddff38f /settings.py
parent63caf646fa72121852eeb4944b6b9ce606665ba0 (diff)
Add a context processor so BRANDING_* works in templaces
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py11
1 files changed, 6 insertions, 5 deletions
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 <nobody@archlinux.org>'
+
## 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 <nobody@archlinux.org>'