      ]
  
      # urls.py
      urlpatterns = [
          url(r'^v1/', include('users.urls', namespace='v1')),
          url(r'^v2/', include('users.urls', namespace='v2'))
      ]
  
      GET /1.0/something/ HTTP/1.1
      Host: example.com
      Accept: application/json
 
</s> remove         url(r'^(?P<version>[v1|v2]+)/users/$', users_list, name='users-list'),
        url(r'^(?P<version>[v1|v2]+)/users/(?P<pk>[0-9]+)/$', users_detail, name='users-detail')
 </s> add         re_path(r'^(?P<version>[v1|v2]+)/users/$', users_list, name='users-list'),
        re_path(r'^(?P<version>[v1|v2]+)/users/(?P<pk>[0-9]+)/$', users_detail, name='users-detail') </s> remove         url(r'^/users/$', users_list, name='users-list'),
        url(r'^/users/(?P<pk>[0-9]+)/$', users_detail, name='users-detail')
 </s> add         path('/users/', users_list, name='users-list'),
        path('/users/<int:pk>/', users_detail, name='users-detail') </s> remove         url(r'^v1/', include((included, 'v1'), namespace='v1')),
        url(r'^v2/', include((included, 'v2'), namespace='v2'))
 </s> add         path('v1/', include((included, 'v1'), namespace='v1')),
        path('v2/', include((included, 'v2'), namespace='v2')) </s> remove         url(r'^namespaced/(?P<pk>\d+)/$', dummy_pk_view, name='namespaced'),
 </s> add         path('namespaced/<int:pk>/', dummy_pk_view, name='namespaced'), </s> remove         url(r'^namespaced/(?P<pk>\d+)/$', dummy_pk_view, name='namespaced'),
        url(r'^nested/', include((nested, 'nested-namespace'), namespace='nested-namespace'))
 </s> add         path('namespaced/<int:pk>/', dummy_pk_view, name='namespaced'),
        path('nested/', include((nested, 'nested-namespace'), namespace='nested-namespace'))
        path('v1/', include('users.urls', namespace='v1')),
        path('v2/', include('users.urls', namespace='v2'))
      ]
  
      # urls.py
      urlpatterns = [
        path('v1/', include('users.urls', namespace='v1')),
        path('v2/', include('users.urls', namespace='v2'))
        path('v1/', include('users.urls', namespace='v1')),
        path('v2/', include('users.urls', namespace='v2'))
      ]
  
      GET /1.0/something/ HTTP/1.1
      Host: example.com
      Accept: application/json
keep keep keep keep replace replace keep keep keep keep keep
 Replace all url() calls with path() or re_path() (#7512)

* url() is deprecated in Django 3.1

* update given feedbacks on url() is deprecated in Django 3.1

* Fix test_urlpatterns.py to continue testing mixed re_path() and path()

* Fix one missed reference

Co-authored-by: sanjusci <sanju.sci9@gmail.com> 
rest_framework/versioning.py