def server_error(request, template_name='500.html'):
    t = loader.get_template(template_name) # You need to create a 500.html template.
    return http.HttpResponseServerError(t.render(Context({})))
500 error handler.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/views/defaults.py/server_error