Transform all Django exceptions to JSON?

20 views
Skip to first unread message

jack

unread,
Apr 16, 2015, 8:31:14 AM4/16/15
to django...@googlegroups.com
Hello, 

I use django rest framework to make API server. DRF catches some Django exceptions and transforms them in JSON. However some exceptions, like 404, are still returned as Django pages (at least it works that way on my machine). How can I wrap all exceptions in JSON from any library? I'm working on mobile app and I can't debug html dumps from Django in console :( 

Am I missing something important?
Reply all
Reply to author
Forward
0 new messages