The Ultimate Django Series: Part 2:
Building RESTful APIs with Django REST Framework: (16 - Deleting Objects)
video (HTTP_405_METHOD_NOT_ALLOWED and ‘error’: ‘Product cannot be deleted because it is associated with an order item.’)
showing.
When I practice. But not showing (HTTP_405_METHOD_NOT_ALLOWED and ‘error’: ‘Product cannot be deleted because it is associated with an order item.’).
How can I fix the problem? Please help me
Here are the codes: