'WSGIRequest' object has no attribute 'get'
You should use the request.POST
dict-like object:
username = request.POST.get('username','')
password = request.POST.get('password','')
you should use this for Get method otherwise Post for post method in python 3
username = request.GET.get('username','')
password = request.GET.get('password','')