def csrf(request):
    def _get_val():
        token = get_token(request)
        if token is None:
            # In order to be able to provide debugging info in the
            # case of misconfiguration, we use a sentinel value
            # instead of returning an empty dict.
            return 'NOTPROVIDED'
        else:
            return smart_text(token)
    _get_val = lazy(_get_val, six.text_type)

    return {'csrf_token': _get_val() }
Verifies ssconf names.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/core/context_processors.py/csrf--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/tools/node_daemon_setup.py/VerifySsconf