I figured it out! I need to specify the pk in the url for both PUT and
DELETE. Additionally for PUT, I need to specify the desired changes as
xml in the content of the request.
Awesome! (Though I wonder what would i do for bulk updates and deletes?)
Thanks.
On 3/21/09, chefsmart <moran....@gmail.com> wrote:
> Hi,
>
> I have been using django_restapi with good results for reading and
> creating data. I have been trying to do updates via HTTP PUT, but the
> following is returned whenever I do a PUT request:
>
> <?xml version="1.0" encoding="utf-8"?>
> <django-error><error-message>404 NOT
> FOUND</error-message><status-code>404</status-code></django-error>
>
> I have tried going through the code to figure out why this is
> happening, with no luck. My restapi collection has permitted_methods =
> ('GET', 'POST', 'PUT',) and I am using properly formed xml in the
> content of the PUT request, which has a proper pk attribute of an
> existing object.
>
> Could someone please help me with this?
>
> Thanks and regards,
> C. Moran