﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13850	Make handle_uncaught_exception() more easily patch-able	Leonid Grinberg	nobody	"When a 500 error happens that is not handled by any middleware, etc., Django goes into core.handlers.base.handle_uncaught_exception, which, if settings.DEBUG is set to False, generates a simple email that contains the traceback and request data and sends it to the admins specified in settings.py.  This behavior is not configurable, and in particular there is no easy way to customize what the contents of the email is.  The best one can hope to do is to subclass or monkey-patch BaseHandler.

It would be nice for this function to use a helper method of BaseHandler that takes the same information (request and exc_info) and returns the (subject, message) tuple.  Then, applications that would like more detailed error emails can simply replace this function with whatever they want.  The attached patch does this."		closed	Core (Other)	dev		invalid	mail, unhandlederror, http500		Unreviewed	1	0	0	0	0	0
