﻿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
27567	Avoid crashes in tecnical exception page/emails when the database is down	Andreas Pelme	Andreas Pelme	"The technical 500 debug view and admin email shows the currently logged in user.

However, if the database is shutting down or is unavailable, anything that involves the ORM raises `OperationalError`s. Turning `request.user` into a string in the template rendering will cause and exception which will cause the rendering to crash. Crashes in the error reporting itself cause hard to debug problem which can be hard to follow (especially for beginners).

I propose that we should catch exceptions when retrieving the user details and state that the user could not be shown while still showing everything else.

PR: https://github.com/django/django/pull/7656"	Bug	assigned	Error reporting	1.10	Normal				Unreviewed	1	0	0	0	0	0
