def handle500(request):
 return render(request, 'handlers/500.html', status=500)

def handle500 ( request ) : return render ( request , 'handlers/500.html' , status = 500 )
a 500 message that looks nicer than the normal apache error page .