      """Given a url returns a list of breadcrumbs, which are each a tuple of (name, url)."""
  
      from djangorestframework.views import View
  
      def breadcrumbs_recursive(url, breadcrumbs_list):
          """Add tuples of (name, url) to the breadcrumbs list, progressively chomping off parts of the url."""
  
          try:
              (view, unused_args, unused_kwargs) = resolve(url)
          except Exception:
 
</s> remove from django.core.urlresolvers import resolve
 </s> add from django.core.urlresolvers import resolve, get_script_prefix
 </s> remove         return breadcrumbs_recursive(url[:url.rfind('/') + 1], breadcrumbs_list)

    return breadcrumbs_recursive(url, [])
 </s> add         return breadcrumbs_recursive(url[:url.rfind('/') + 1], breadcrumbs_list, prefix) </s> remove                 breadcrumbs_list.insert(0, (view.cls_instance.get_name(), url))
 </s> add                 breadcrumbs_list.insert(0, (view.cls_instance.get_name(), prefix + url)) </s> remove             return breadcrumbs_recursive(url.rstrip('/'), breadcrumbs_list)
 </s> add             return breadcrumbs_recursive(url.rstrip('/'), breadcrumbs_list, prefix)
    def breadcrumbs_recursive(url, breadcrumbs_list, prefix):
      """Given a url returns a list of breadcrumbs, which are each a tuple of (name, url)."""
  
      from djangorestframework.views import View
  
    def breadcrumbs_recursive(url, breadcrumbs_list, prefix):
          """Add tuples of (name, url) to the breadcrumbs list, progressively chomping off parts of the url."""
  
          try:
              (view, unused_args, unused_kwargs) = resolve(url)
          except Exception:
keep keep keep keep replace keep keep keep keep keep
 Breadcrumbs play nicely when app not installed at root URL.  Fixes #211 
djangorestframework/utils/breadcrumbs.py