40 words, 1 min read

Can easily be done by a template tag:

blog/templatetags/settings_value.py

from django import template
from django.conf import settings
register = template.Library()
@register.simple_tag
def settings_value(name):
return getattr(settings, name, "")

In the template, you can use it as follows:

{% settings_value "SITE_TITLE" %}