1👍
✅
Add @api_view(['POST'])
on the line before myView function:
@api_view(['POST'])
def myView(request):
//so on
Source:stackexchange.com