哦,好像是因为前端的js没有弹出相应的提示,只能在报错里面看
如果密码小于5位的话,会出现
File "D:\2022django学习\2022Django编程学习(第五版)\MxOnline\apps\users\forms.py", line 14, in clean
pwd1 = self.cleaned_data["password1"]
KeyError: 'password1'
[09/Jul/2022 11:16:01] "POST /users/update/pwd/ HTTP/1.1" 500 18451