📌  相关文章
📜  无法导入 NAME 中的模块:django.contrib.user_auth.password_validation.UserAttributeSimilarityValidator.检查您的 AUTH_PASSWORD_VALI - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:31.929000             🧑  作者: Mango

代码示例1
AUTH_PASSWORD_VALIDATORS = [
    {
        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
    },
]