Snippets Tutorial on DRF -- Responding to 404 Error

52 views
Skip to first unread message

Djangonaut

unread,
May 24, 2021, 2:40:41 PM5/24/21
to Django REST framework
I have followed the snippets tutorial to the end and have a question regarding responding to a 404 Error for a snippet or any other item that is not found.  Please see attached image.  Is there a way to disable the `DELETE` operation and `PUT` form when an error is raised? Where in the code can I do this?  Thank you so much!

2021-05-24_14-05-57.jpg


Reply all
Reply to author
Forward
0 new messages