          urls = super().get_urls()
  
          if self.include_root_view:
              view = self.get_api_root_view(api_urls=urls)
              root_url = url(r'^$', view, name=self.root_view_name)
              urls.append(root_url)
  
          if self.include_format_suffixes:
              urls = format_suffix_patterns(urls)
  
 
</s> remove         url(r'^$', docs_view, name='docs-index'),
        url(r'^schema.js$', schema_js_view, name='schema-js')
 </s> add         path('', docs_view, name='docs-index'),
        path('schema.js', schema_js_view, name='schema-js') </s> remove                 ret.append(url(regex, view, name=name))
 </s> add                 ret.append(re_path(regex, view, name=name)) </s> remove                 new_pattern = url(regex, view, kwargs, name)
 </s> add                 new_pattern = re_path(regex, view, kwargs, name) </s> remove                 new_pattern = url(regex, include((patterns, app_name), namespace), kwargs)
 </s> add                 new_pattern = re_path(regex, include((patterns, app_name), namespace), kwargs) </s> remove     url(r'^login/$', views.LoginView.as_view(template_name='rest_framework/login.html'), name='login'),
    url(r'^logout/$', views.LogoutView.as_view(), name='logout'),
 </s> add     path('login/', views.LoginView.as_view(template_name='rest_framework/login.html'), name='login'),
    path('logout/', views.LogoutView.as_view(), name='logout'),
            root_url = re_path(r'^$', view, name=self.root_view_name)
          urls = super().get_urls()
  
          if self.include_root_view:
              view = self.get_api_root_view(api_urls=urls)
            root_url = re_path(r'^$', view, name=self.root_view_name)
              urls.append(root_url)
  
          if self.include_format_suffixes:
              urls = format_suffix_patterns(urls)
  
keep keep keep keep replace keep keep keep keep keep
 Updated url()'s with path() and re_path() (#7492) 
rest_framework/routers.py