  from modelresourceexample.resources import MyModelResource
  
  urlpatterns = patterns('',
      url(r'^$',          ListOrCreateModelView.as_view(resource=MyModelResource), name='model-resource-root'),
      url(r'^(?P<pk>[0-9]+)/$', InstanceModelView.as_view(resource=MyModelResource)),
  )
 
</s> remove                                   'url': reverse('mixin-view', request)})
 </s> add                                   'url': url}) </s> remove # reverse_lazy (Django 1.4 onwards)
try:
    from django.core.urlresolvers import reverse_lazy
except:
    from django.core.urlresolvers import reverse
    from django.utils.functional import lazy
    reverse_lazy = lazy(reverse, str)
 </s> add  </s> remove except ImportError: # python < 2.7
 </s> add except ImportError:  # python < 2.7 </s> remove from djangorestframework.compat import reverse_lazy as django_reverse_lazy
 </s> add from django.utils.functional import lazy </s> remove except ImportError: # python < 2.7
 </s> add except ImportError:  # python < 2.7
    url(r'^(?P<id>[0-9]+)/$', InstanceModelView.as_view(resource=MyModelResource), name='model-resource-instance'),
  from modelresourceexample.resources import MyModelResource
  
  urlpatterns = patterns('',
      url(r'^$',          ListOrCreateModelView.as_view(resource=MyModelResource), name='model-resource-root'),
    url(r'^(?P<id>[0-9]+)/$', InstanceModelView.as_view(resource=MyModelResource), name='model-resource-instance'),
  )
keep keep keep keep replace keep
 reverse takes request as a kwarg for compatibility with django's reverse 
examples/modelresourceexample/urls.py