URL Handlers¶
Nuit proides the following URL handlers for consistent error pages across the site. See Django’s django.conf.urls
documentation for more details.
Nuit Status Code Handlers
-
nuit.handlers.
generic_handler
(request, template, status, context=None)[source]¶ Return a response with a particular status code, rendering a template with a specified context.
-
nuit.handlers.
handler400
(request)[source]¶ View handling bad requests, to be used as
django.conf.urls.handler400
-
nuit.handlers.
handler403
(request)[source]¶ View handling permission denied exceptions, to be used as
django.conf.urls.handler403
-
nuit.handlers.
handler404
(request)[source]¶ View handling invalid URLs, to be used as
django.conf.urls.handler404
-
nuit.handlers.
handler500
(request)[source]¶ View handling execeptions, to be used as
django.conf.urls.handler500