@register.tag
def settings(parser, token):
    var_name = None
    try:
        tag_name, arg = token.contents.split(None, 1)
    except __HOLE__:
        raise template.TemplateSyntaxError(
            "%r tag requires arguments" % token.contents.split()[0])
    m = re.search(r'(.*?) as (\w+)', arg)
    if m:
        arg, var_name = m.groups()
    if not (arg[0] == arg[-1] and arg[0] in ('"', "'")):
        raise template.TemplateSyntaxError(
            "%r tag's argument should be in quotes" % tag_name)
    return ContextNode(django_settings.get(arg[1:-1]), var_name)
dataset/ETHPy150Open jqb/django-settings/django_settings/templatetags/settings_tags.py/settings