采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
这里很重要,你一定要单步调试这里看看是否能返回user 而不是返回none
虽然可以不调用authenticate来验证user, 用cheack_password也可以实现同样的目的,但是就是不知道为什么authenticate不行。。。
你的问题解决了?
Nope, I wanna post my QQ number here to let you add me then, but the system don’t allow me to do that. “Eight one zero six one seven zero six eight”, I will very appreciate it if you can add my QQ to answer my questions.
我去。。。,加你了
用Check_password 对POST到的username, password和UserProfile中的进行了比对,发现手动可以找到user, 但是authenticate就是返回None(), 怎么解决这个问题 很头疼!!!
登录后可查看更多问答,登录/注册
一套通用的技术组合拳,助你解决大部分Python类网站后端问题
1.8k 18
2.2k 15
2.3k 13
2.5k 13
1.3k 12
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号