              self.func, self.args, self.kwargs, self.url_name, self.app_name, self.namespace)
  
  
  class Resolver404(Http404):
      pass
  
  
  class NoReverseMatch(Exception):
      pass
  
 
</s> remove     resolver.resolve('')
 </s> add     resolver.resolve('/not-in-urls') </s> remove             self.assertTrue('tried' in e.args[0])
            tried = e.args[0]['tried']
            self.assertEqual(len(e.args[0]['tried']), len(url_types_names), 'Wrong number of tried URLs returned.  Expected %s, got %s.' % (len(url_types_names), len(e.args[0]['tried'])))
            for tried, expected in zip(e.args[0]['tried'], url_types_names):
 </s> add             self.assertTrue(hasattr(e, 'tried'))
            tried = e.tried
            self.assertEqual(len(tried), len(url_types_names), 'Wrong number of tried URLs returned.  Expected %s, got %s.' % (len(url_types_names), len(tried)))
            for tried, expected in zip(tried, url_types_names): </s> remove         'request_path': request.path_info[1:],  # Trim leading slash
 </s> add         'request_path': error_url,
              self.func, self.args, self.kwargs, self.url_name, self.app_name, self.namespace)
  
  
  class Resolver404(Http404):

  
  
  class NoReverseMatch(Exception):
      pass
  
keep keep keep keep replace keep keep keep keep keep
 Fixed #18373 - improved handling of Resolver404s from views

When django.core.urlresolvers.resolve was called from a view, failed
and the exception was propagated and rendered by technical_404_response,
the URL mentioned on the page was the current URL instead of the URL
passed to resolve().

Fixed by using the path attribute from the Resolver404 exception instead
of request.path_info. Also cleaned up the exceptions to use standard
named parameters instead of stuffing a dict in args[0] 
django/core/urlresolvers.py