From d82111caa7a6966a4cc2bed34edf997f4008b00d Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 24 Nov 2016 22:02:27 +0000 Subject: [PATCH] add django settings stuff to base --- project/common/context.py | 3 ++- templates/base.html | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/project/common/context.py b/project/common/context.py index 5189299..1182890 100644 --- a/project/common/context.py +++ b/project/common/context.py @@ -8,7 +8,8 @@ SETTINGS_KEYS = [ 'MEDIA_URL', 'LANGUAGE_CODE', 'TIME_ZONE', - 'ALLOWED_HOSTS' + 'ALLOWED_HOSTS', + 'WAGTAIL_SITE_NAME' ] diff --git a/templates/base.html b/templates/base.html index 72e08c1..1866cb3 100755 --- a/templates/base.html +++ b/templates/base.html @@ -1,13 +1,15 @@ {% load static wagtailuserbar %} - + {% block htmltitle %}{% if self.seo_title %}{{ self.seo_title }}{% else %}{{ self.title }}{% endif %}{% endblock %} + +