def validate_user_settings(settings: dict):
    """
    These are the settings that from my testing must not be None.
    This just exists so that oTree doesn't give a cryptic error later on
    """
    required_settings = {'SESSION_CONFIG_DEFAULTS', 'SESSION_CONFIGS',
        'LANGUAGE_CODE', 'SECRET_KEY', 'ADMIN_USERNAME'}
    for SETTING in required_settings:
        if not SETTING in settings:
            msg = f'settings.py: setting {SETTING} is missing.'
            raise ValueError(msg)
