python - using django-rest-interface with http put -


I am trying to figure out how to implement my first healthy interface using Django and django-rest-interface Please. I'm having problems with HTTP PUT requests.

How do I get the PUT request parameters? I thought they would be in the request. POT array, like PUT in my understanding, is similar to the post, but that array is always empty.

What am I doing wrong?

Thanks for the help

request. POST in a dictionary form-encoded data, which only makes sense for it, web browser form submission. There is no equivalent for PUT, because the web does not browse; There may be any content type in the submitted data, you will need to exclude the request data from request.raw_post_data, perhaps the content type should be checked, and processing it wisely makes sense for your application.

More info.


Comments