Can easily be done by a template tag:


from django import template
from django.conf import settings

register = template.Library()

def settings_value(name):
    return getattr(settings, name, "")

In the template, you can use it as follows:

{% settings_value "SITE_TITLE" %}

Related Posts

  • Migrating your Wagtail site to a different database engine
  • Making publish the default action in Wagtail
  • Outputting a Django queryset as JSON
  • Programatically creating redirects in Wagtail
  • Generating slugs and redirects with Django