1
我正在实施这里概述的解决方案:How to use custom password validators beside the django auth password validators?在django中放置自定义验证器的位置?
答案是非常有用的,除了一个方面:我在哪里把验证器的代码?在AUTH_PASSWORD_VALIDATORS我看行:
'NAME': registration.validators.CustomPasswortValidator
,但我怎么把CustomPasswortValidator方法为registration.validators?甚至什么是registration.validators?我在哪里可以找到?
谢谢下面
@purplefloyd你有没有试过,它对你有用吗? –
@purplefloyd,如果我的解决方案为您工作,请upvote并选择我的naswer。谢谢。 –