It might be a Python newbie question...
try:
#do something
except:
raise Exception(\'XYZ has gone wrong...\')
Even with DEBUG=True,
You have three options here.
process_exception implementedMiddleware Example:
class MyExceptionMiddleware(object):
def process_exception(self, request, exception):
if not isinstance(exception, SomeExceptionType):
return None
return HttpResponse('some message')