I've google around a bit and it seems like similar problems have been
encountered, but the few purported fixes I've found have only yielded
the same error. When I disable the CSRF middleware in settings.py,
everything works perfectly fine.
I'm running piston tip (changeset: 276:dc0ee00d3bfc) with Django
1.2.1 and Python 2.6.5. Thanks!
--
Samuel Baldwin - logik.li
See, this is the part that confuses me; what view call? Everything is
being handled in urls.py and handlers.py in my api/ directory. I'm a
newcomer to Django so I guess I must be missing something that goes on
under the hood.
> The tested workaround that we recommend is to have the client add the
> following HTTP header to all POST and PUT API calls:
>
> -H "X-Requested-With:XMLHttpRequest"
Roger that, thanks. What I've been doing is removing the middleware
and just using @csrf_protect decorators on the relevant non-API views,
but that has its issues as well.