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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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!