'500 error handler.
Templates: `500.html`
Context: None'

def dispatch(self, request):

    context = {'request': request}
    embed_config = self.get_embed_config(request)
    if embed_config:
        context['embed_config'] = json.dumps_htmlsafe(embed_config)
    t = loader.get_template('sentry/500.html')
    return HttpResponseServerError(t.render(Context(context)))
