  from django.core.urlresolvers import resolve
  
  def get_breadcrumbs(url):
      """Given a url returns a list of breadcrumbs, which are each a tuple of (name, url)."""
  
      from djangorestframework.views import View
 
</s> remove     def breadcrumbs_recursive(url, breadcrumbs_list):
 </s> add     def breadcrumbs_recursive(url, 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[:url.rfind('/') + 1], breadcrumbs_list)

    return breadcrumbs_recursive(url, [])
 </s> add         return breadcrumbs_recursive(url[:url.rfind('/') + 1], breadcrumbs_list, prefix) </s> remove             return breadcrumbs_recursive(url.rstrip('/'), breadcrumbs_list)
 </s> add             return breadcrumbs_recursive(url.rstrip('/'), breadcrumbs_list, prefix)
from django.core.urlresolvers import resolve, get_script_prefix

from django.core.urlresolvers import resolve, get_script_prefix

  
  def get_breadcrumbs(url):
      """Given a url returns a list of breadcrumbs, which are each a tuple of (name, url)."""
  
      from djangorestframework.views import View
replace keep keep keep keep keep
 Breadcrumbs play nicely when app not installed at root URL.  Fixes #211 
djangorestframework/utils/breadcrumbs.py