且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Django注册表单'AnonymousUser'对象没有属性'后端'

更新时间:2023-02-25 12:33:29

Your user will never authenticate, because you're saving the password in plain text - and authenticate expects a hashed password. You should call user.set_password(password) on the newly-created user object before saving it to the db - see the built-in UserCreationForm.

上一篇 : :如何实现基于Web的文件上传进度条?下一篇 : 用直接文件上传替换表单输入文件

相关阅读

技术问答最新文章