def server_error_404(request, template_name='404.html'):
 response = get_redirect_response(request, path=request.get_full_path())
 if response:
  return response
 r = render_to_response(template_name, context_instance=RequestContext(request))
 r.status_code = 404
 return r

def server_error_404 ( request , template_name = '404.html' ) : response = get_redirect_response ( request , path = request . get_full_path ( ) ) if response : return response r = render_to_response ( template_name , context_instance = RequestContext ( request ) ) r . status_code = 404 return r
a simple 404 handler so we get media .