even better integration for django exception middleware