@register.filter
def get(d, key_name):
    try:
        value = d.get(key_name)
    except __HOLE__:
        from django.conf import settings
        value = settings.TEMPLATE_STRING_IF_INVALID
    return value

####
# 'assign' from http://www.djangosnippets.org/snippets/539/
dataset/ETHPy150Open pfibiger/grumblechat/tags/filters.py/get