【发布时间】:2018-02-06 05:41:38
【问题描述】:
Django version 1.10.7
我收到TypeError: authenticate() takes exactly 0 arguments (3 given)
像这样导入 authenticate():from django.contrib.auth import authenticate, login
像这样调用 authenticate() :authenticate(request, username=request.POST['username'] ,password=request.POST['password'])
【问题讨论】:
标签: python django django-1.10