Skip to content

DRF not catching nor handling IntegrityErrors #8770

Discussion options

You must be logged in to vote

Never mind, there is already an even better solution:
https://stackoverflow.com/a/74504921/5750078

basically: DRF allows you to configure a custom exception handler. Look in that answer for how to.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alvaroscelza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant