Returns a Node instance at path (relative to the current site) or None.
RequestNodeMiddleware also catches all exceptions raised while handling requests that have attached Nodes if settings.DEBUG is True. If a django.http.Http404 error was caught, RequestNodeMiddleware will look for an “Http404” Attribute on the request’s Node; otherwise it will look for an “Http500” Attribute. If an appropriate Attribute is found, and the value of the attribute is a View instance, then the View will be rendered with the exception in the extra_context, bypassing any later handling of exceptions.
node_view() handles incoming requests by checking to make sure that:
If these conditions are not met, then node_view() will either raise Http404 or, if it seems like the address was mistyped (for example missing a trailing slash), return an HttpResponseRedirect to the correct address.