So I’m looking at the user authentication for django, and since it’s turning into this mishmash of ajax-y stuff, I’m unable to send a normal request to my login url, and I’m doing so through json using a jquery ajax method on the client side to post the user data in order to login. So my question is, is there a way to use django’s login() function in another way, because my request object is not what is expected, so it won’t work. Authenticate works fine, because I just deserialize the username and password, but now I’m stuck on the login() part.
Any help would be great.
Thanks!
Using
login()without a request object doesn’t make any sense, because whatlogin()does is it “couples” user to request.