If you are creating a simple REST API, you are not going to have a good time unless you are working with a framework.
Wouldn't it be nice if you could use request.PUT just like the dicts request.POST and request.GET After finally searching online, I have stumbled upon a way to do just that.
You can find the code on BitBucket.
if request.method == "PUT":
if hasattr(request, '_post'):
request.method = "POST"
request.method = "PUT"
request.META['REQUEST_METHOD'] = 'POST'
request.META['REQUEST_METHOD'] = 'PUT'
request.PUT = request.POST
What you do here is simply change the request method back to POST, reload the variables and rename the request method and request.POST dictionary. A nice hack to get your job done.