websauna.system.core.views.internalservererror module

The dreaded 500 page.

websauna.system.core.views.internalservererror.internal_server_error(context, request)[source]

Generate the default internal server error page when exception falls through from a view.

This view is marked as CSRF exempt, so that HTTP POST requests to API endpoints do not cause additional Bad CSRF exception when HTTP 500 Internal server error is raised.

Also see https://github.com/Pylons/pyramid_tm/issues/40