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 @@