  
      schema_view = get_schema_view(title='Example API')
  
      urlpatterns = [
          url('^$', schema_view),
          url(r'^', include(router.urls)),
      ]
  
  ### Schema path representations
  
  The `'pk'` identifier in schema paths is now mapped onto the actually model field
 
</s> remove     url(r'^$', schema_view),
    url(r'^', include(router.urls))
 </s> add     path('', schema_view),
    path('', include(router.urls)) </s> remove             url(r'^example/?$', views.ExampleListView.as_view()),
            url(r'^example/{pk}/?$', views.ExampleDetailView.as_view()),
 </s> add             path('example/', views.ExampleListView.as_view()),
            path('example/{pk}/', views.ExampleDetailView.as_view()), </s> remove     url(r'^swagger/$', schema_view),
 </s> add     path('swagger/', schema_view), </s> remove             url(r'^example/?$', ExampleView.as_view()),
 </s> add             path('example/', ExampleView.as_view()), </s> remove     url('^schema.json$', schema_view),
 </s> add     path('schema.json', schema_view),
        path('', schema_view),
        path('', include(router.urls)),
  
      schema_view = get_schema_view(title='Example API')
  
      urlpatterns = [
        path('', schema_view),
        path('', include(router.urls)),
        path('', schema_view),
        path('', include(router.urls)),
      ]
  
  ### Schema path representations
  
  The `'pk'` identifier in schema paths is now mapped onto the actually model field
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> 
docs/community/3.5-announcement.md