摘要: # 不论怎么测试 authenticate 返回结果一直是None,查了查原因好像是 django 2.1 版本的问题 ( 我用的是 2.1.7) 解决方法: 1. 先导入 from django.contrib.auth.hashers import check_password 2. 按照步骤, 阅读全文
posted @ 2019-03-24 14:36 _Q 阅读(1493) 评论(0) 推荐(0)