标签: python django
尝试authenticate时遇到错误。
authenticate
password = request.POST['password'].encode('utf-8') user = auth.authenticate(username = username, password = password)
问题可能在我的auth.后端? 我将密码转换为auth.后端的md5。
auth.
password = hashlib.md5(password).hexdigest()