def domain(request):

    project = getattr(request, 'project', None)
    return get_per_domain_context(project, request=request)
default: django-admin builtin commands fail if settings file (from environment) doesn't exist
dataset/ETHPy150Open dimagi/commcare-hq/corehq/util/context_processors.py/domain--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/admin_scripts/tests.py/DjangoAdminDefaultSettings.test_builtin_with_bad_environment