def handler500(request):
from django.template import Context, loader<EOL>from django.http import HttpResponseServerError<EOL>from overseer.context_processors import default<EOL>import logging<EOL>import sys<EOL>try:<EOL><INDENT>context = default(request)<EOL><DEDENT>except Exception as e:<EOL><INDENT>logging.error(e, exc_info=sys.exc_info(), extra={'<STR_LIT>': request})<EOL>context = {}<EOL><DEDENT>context['<STR_LIT>'] = request<EOL>t = loader.get_template('<STR_LIT>') <EOL>return HttpResponseServerError(t.render(Context(context)))<EOL>
500 error handler.

Templates: `500.html`
Context: None