def domain(request):

    project = getattr(request, 'project', None)
    return get_per_domain_context(project, request=request)
Global per-domain context variables
dataset/ETHPy150Open dimagi/commcare-hq/corehq/util/context_processors.py/domain