def create_domain(name, active=True):
    return Domain.get_or_create_with_name(name=name, is_active=active,
                                          secure_submissions=False)
Create domain without secure submissions for tests
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/domain/shortcuts.py/create_domain