REST : rest_framework.decorators.api_view 实现PATCH
对http://www.django-rest-framework.org/tutorial/2-requests-and-responses/做补充点击(此处)折叠或打开@api_view(['GET','PATCH','DELETE'])defsnippet_detail(request,pk):"""Retrieve,updateordeleteasnippetinstance."""try