  ]
  
  urlpatterns = [
      url(r'^non-namespaced/', include(namespaced_router.urls)),
      url(r'^namespaced/', include(namespaced_router.urls, namespace='example')),
      url(r'^example/', include(notes_router.urls)),
      url(r'^example2/', include(kwarged_notes_router.urls)),
  
      url(r'^empty-prefix/', include(empty_prefix_urls)),
  ]
 
</s> remove         url(r'^nested/', include(nested, namespace='nested-namespace'))
 </s> add         url(r'^nested/', include(nested, namespace='nested-namespace', app_name='nested-namespace')) </s> remove         url(r'^v1/', include(included, namespace='v1')),
 </s> add         url(r'^v1/', include(included, namespace='v1', app_name='v1')), </s> remove         url(r'^v1/', include(included, namespace='v1')),
        url(r'^v2/', include(included, namespace='v2'))
 </s> add         url(r'^v1/', include(included, namespace='v1', app_name='v1')),
        url(r'^v2/', include(included, namespace='v2', app_name='v2')) </s> remove from rest_framework.compat import RegexURLResolver
 </s> add from rest_framework.compat import RegexURLResolver, include
    url(r'^namespaced/', include(namespaced_router.urls, namespace='example', app_name='example')),
  ]
  
  urlpatterns = [
      url(r'^non-namespaced/', include(namespaced_router.urls)),
    url(r'^namespaced/', include(namespaced_router.urls, namespace='example', app_name='example')),
      url(r'^example/', include(notes_router.urls)),
      url(r'^example2/', include(kwarged_notes_router.urls)),
  
      url(r'^empty-prefix/', include(empty_prefix_urls)),
  ]
keep keep keep keep replace keep keep keep keep keep
 Fixed Django 2.0 compatibility due to `django.conf.urls.include` parameters change. (#4866) 
tests/test_routers.py