Jump to >

This documentation covers the in-development release of Djblets. You can see the latest stable docs or all previous versions.

djblets.urls.root

URL patterns for applications that can use SITE_ROOT.

handler404(request, exception, template_name='404.html')[source]

Default 404 handler.

Templates: :template:`404.html` :Context:

request_path

The path of the requested URL (e.g., ‘/app/pages/bad_page/’). It’s quoted to prevent a content injection attack.

exception

The message from the exception which triggered the 404 (if one was supplied), or the exception class name

handler500(request, template_name='500.html')[source]

500 error handler.

Templates: :template:`500.html` Context: None