How can I do an AJAX request with an authenticated user in Django?
django, jquery
Solution
Ajax requests are no different from any other kind of request. If the user is already authenticated, then the Ajax request will be authenticated too: the session cookie which identifies the user will be sent along with the Ajax request just as it would be with any other one.
(That linked question is irrelevant because it is talking about authenticating the user within the request, not using an already-authenticated user as you want.)
Problem
I need to do an HTTP call using AJAX with an already authenticated user using Django. Is there any standard simple way to do this? I've read this other question but uses a different technology. I'm using HTTP (not HTTPS) and using a third-party app like django-tastypie for this unique "simple" purpose would be overkill, wouldn't it?