📌  相关文章
📜  无法导入 NAME 中的模块:django.contrhtmlib.auth.password_validation.UserAttributeSimilarityValidator.检查您的 AUTH_PASSWORD_VALIDATORS 设置. - Python 代码示例

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

代码示例2
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',
    },
]