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.


View handling bad requests, to be used as django.conf.urls.handler400


View handling permission denied exceptions, to be used as django.conf.urls.handler403


View handling invalid URLs, to be used as django.conf.urls.handler404


View handling execeptions, to be used as django.conf.urls.handler500