user_image
By  用户7567606679    On   2021年2月23日 15:59

以讹传讹。这个登录验证密码是错的,数据库中的密码不是明码(是哈希码),几乎永远对不上。必须用 from django.contrib.auth import authenticate user = authenticate(username = user_name,password = pass_word)【或者check_password】