The problem I am addressing is REST ful API with django for a modular backbone application.
I have a question. I know that REST is stateless, which means that in every request you have to pass the user and the password, so, in case if I have a pure rest API I am not sure, how I take care of the authentication. Probably I will have to hack some part of collection in the backbone model to maintain auth cookie and session variables.
So the question is, instead of hacking the client side, can I leverage the builting django auth, clubbed with the rest feature?
What would be an optimal way of doing it?
use django-tastypie and
SessionAuthentication