views:

33

answers:

1

Hi all

I'm trying to get json data from a django view (login required) into a new android app I'm working on.

I would like to authenticate the user against the django login and keep the cookie/session for all the django view calls to get data from the server.

I did some googling but nothing helped me, even if I guess it should be a quite common task.

Maybe I'm facing the problem from a wrong point of view.. So I'll switch the question to: how can I do some user authenticated json request/response to a django server?

Any clue?

+2  A: 

You have to do as the website expects, and you need to persist the session cookie.

Ignacio Vazquez-Abrams