Hi all,
Here is my view:
class MediaFileUploadView(views.APIView):
parser_classes = (parsers.FileUploadParser,)
def post(self, request, filename, format=None):
return Response(status=status.HTTP_204_NO_CONTENT)
I get the 405 Method Not Allowed
response whenever I try to make a POST
request to this view. Does anyone know what's wrong with the view?
Thanks.