  class NestedResourceInstance(APIView):
      pass
  
  
  urlpatterns = patterns(
      '',
      url(r'^$', Root.as_view()),
      url(r'^resource/$', ResourceRoot.as_view()),
      url(r'^resource/(?P<key>[0-9]+)$', ResourceInstance.as_view()),
      url(r'^resource/(?P<key>[0-9]+)/$', NestedResourceRoot.as_view()),
      url(r'^resource/(?P<key>[0-9]+)/(?P<other>[A-Za-z]+)$', NestedResourceInstance.as_view()),
 
</s> remove )
 </s> add ] </s> remove urlpatterns = patterns(
    '',
 </s> add urlpatterns = [ </s> remove )
 </s> add ] </s> remove urlpatterns = patterns(
    '',
 </s> add urlpatterns = [ </s> remove urlpatterns = patterns(
    '',
 </s> add urlpatterns = [
urlpatterns = [
  class NestedResourceInstance(APIView):
      pass
  
  
urlpatterns = [
urlpatterns = [
      url(r'^$', Root.as_view()),
      url(r'^resource/$', ResourceRoot.as_view()),
      url(r'^resource/(?P<key>[0-9]+)$', ResourceInstance.as_view()),
      url(r'^resource/(?P<key>[0-9]+)/$', NestedResourceRoot.as_view()),
      url(r'^resource/(?P<key>[0-9]+)/(?P<other>[A-Za-z]+)$', NestedResourceInstance.as_view()),
keep keep keep keep replace replace keep keep keep keep keep
 Remove `django.conf.urls.pattern` as it'll be removed in Django 2.0 
tests/test_utils.py