As an alternative to using handler500 we could implement this as a middleware using `process_exception`. https://docs.djangoproject.com/en/2.2/topics/http/middleware/#process-exception
As an alternative to using handler500 we could implement this as a middleware using
process_exception.https://docs.djangoproject.com/en/2.2/topics/http/middleware/#process-exception