[Answered ]-Django 1.8 PUT and DELETE method simple implementation

1👍

Have a read here, I think this might be what you are looking for.

You can use the so called POST TUNNELLING method, that is using a POST
request, putting the HTTP header X_METHODOVERRIDE in the request.

1👍

You can see how Django constructs the POST data from request.body in the source code. You should be be able to do something similar.

Assuming the PUT data is form encoded:

from django.http.request import QueryDict

def my_put_view(request):
   if request.method = 'PUT':
       PUT = QueryDict(self.body, encoding=request._encoding), MultiValueDict()
       # do something with PUT

Leave a comment