I\'m working with two dev servers on my local machine (node & django\'s).
I\'ve added django-cors-headers to the project to allow all origins & methods (on d
If you need to connect http method DELETE with URL without pk in DRF try this inside of your ModelViewSet:
@action(methods=['delete'], detail=False)
def delete(self, request):
# your code
UPD: Note that action attribute inside of ModelViewSet class will be None due request. If you check it somewhere, handle not only action name, but request method and request path.