djblets.urls.root¶
URL patterns for applications that can use SITE_ROOT.
- handler404(request, exception, template_name='404.html')¶
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')¶
500 error handler.
Templates: :template:`500.html` Context: None