On Sun, Jan 8, 2012 at 9:35 AM, Stodge <[email protected]> wrote: > I want to log in to my Django app using something like curl. I know > that I could send a GET to get the login form and the CSRF token and > then submit a POST with the username, password and CSRF token. But > this seems awfully convoluted. Is this the only to login to a Django > site that uses CSRF protection?
https://docs.djangoproject.com/en/1.3/ref/contrib/csrf/#exceptions I use this on views that my mobile apps post to. -- Greg Donald -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

