def page_not_found(request, template_name='404.html'):
 t = loader.get_template(template_name)
 return http.HttpResponseNotFound(t.render(RequestContext(request, {'request_path': request.path})))

def page_not_found ( request , template_name = '404.html' ) : t = loader . get_template ( template_name ) return http . HttpResponseNotFound ( t . render ( RequestContext ( request , { 'request_path' : request . path } ) ) )
default 404 handler .