def validate_settings():
    if (up_settings.USE_ACCOUNT_VERIFICATION and
            'userprofiles.contrib.accountverification' not in settings.INSTALLED_APPS):
        raise ImproperlyConfigured('You need to add `userprofiles.contrib.accountverification` '
            'to INSTALLED_APPS to use account verification.')

    # These settings together make no sense
    if up_settings.USE_ACCOUNT_VERIFICATION and up_settings.AUTO_LOGIN:
        raise ImproperlyConfigured("You cannot use autologin with account verification")

    if up_settings.USE_PROFILE and 'userprofiles.contrib.profiles' not in settings.INSTALLED_APPS:
        raise ImproperlyConfigured('You need to add `userprofiles.contrib.profiles` '
            'to INSTALLED_APPS to use profiles.')

    if up_settings.PROFILE_ALLOW_EMAIL_CHANGE or up_settings.CHECK_UNIQUE_EMAIL:
        raise ImproperlyConfigured(
            'USERPROFILES_PROFILE_ALLOW_EMAIL_CHANGE cannot be activated '
            'when USERPROFILES_CHECK_UNIQUE_EMAIL is active.')

    if (up_settings.USE_EMAIL_VERIFICATION and
            'userprofiles.contrib.emailverification' not in settings.INSTALLED_APPS):
        raise ImproperlyConfigured('You need to add `userprofiles.contrib.emailverification` '
            'to INSTALLED_APPS to use emailverification.')

    if up_settings.PROFILE_ALLOW_EMAIL_CHANGE and up_settings.USE_EMAIL_VERIFICATION:
        raise ImproperlyConfigured(
            'USERPROFILES_PROFILE_ALLOW_EMAIL_CHANGE cannot be activated '
            'when USERPROFILES_USE_EMAIL_VERIFICATION is activated.')

    if ('test' not in sys.argv and not up_settings.USE_EMAIL_VERIFICATION and
            'userprofiles.contrib.emailverification' in settings.INSTALLED_APPS):
        raise ImproperlyConfigured('You need to set USERPROFILES_USE_EMAIL_VERIFICATION '
            'to use `userprofiles.contrib.emailverification`')
dataset/ETHPy150Open stephrdev/django-userprofiles/userprofiles/settings.py/validate_settings/operator `and` -> `or`