输入错误短信验证码,不跳转,显示错误页面
来源:9-13 手机验证码动态登录 - 2
慕侠3297407
2020-06-16
File “C:\Users\18660\PycharmProjects\dierbian\apps\users\views.py”, line 19, in post
if login_form.is_valid():
File “C:\Users\18660\Envs\mxonline\lib\site-packages\django\forms\forms.py”, line 185, in is_valid
return self.is_bound and not self.errors
File “C:\Users\18660\Envs\mxonline\lib\site-packages\django\forms\forms.py”, line 180, in errors
self.full_clean()
File “C:\Users\18660\Envs\mxonline\lib\site-packages\django\forms\forms.py”, line 382, in full_clean
self._clean_form()
File “C:\Users\18660\Envs\mxonline\lib\site-packages\django\forms\forms.py”, line 409, in _clean_form
cleaned_data = self.clean()
File “C:\Users\18660\PycharmProjects\dierbian\apps\users\forms.py”, line 33, in clean
code=self.cleaned_data[‘code’]
KeyError: ‘code’
[16/Jun/2020 03:10:49] “POST /d_login/ HTTP/1.1” 500 102479
3回答
-
bobby
2020-06-27
我要看这一行代码
032020-07-01 -
慕侠3297407
提问者
2020-06-24
这个就是
022020-06-24 -
bobby
2020-06-18
你的form的源码截图我看看
012020-06-24
相似问题