From add91eabbcd1ffbb3671e8fbca85a1130f1af611 Mon Sep 17 00:00:00 2001 From: Isaac Bythewood Date: Wed, 25 Jul 2012 01:58:40 +0000 Subject: [PATCH] Allow for some branding. --- pinry/core/context_processors.py | 7 +++++++ pinry/core/templates/core/base.html | 4 ++-- pinry/settings/__init__.py | 4 ++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 pinry/core/context_processors.py diff --git a/pinry/core/context_processors.py b/pinry/core/context_processors.py new file mode 100644 index 0000000..0417083 --- /dev/null +++ b/pinry/core/context_processors.py @@ -0,0 +1,7 @@ +from django.conf import settings + + +def template_settings(request): + return { + 'site_name': settings.SITE_NAME, + } diff --git a/pinry/core/templates/core/base.html b/pinry/core/templates/core/base.html index e3a6f76..3363bcb 100644 --- a/pinry/core/templates/core/base.html +++ b/pinry/core/templates/core/base.html @@ -3,7 +3,7 @@ - Pinry - {% block title %}{% endblock %} + {{ site_name }} - {% block title %}{% endblock %} {% if debug %} @@ -20,7 +20,7 @@