  
  .. snippet::
      :filename: polls/urls.py
  
      from django.conf.urls import url
  
      from . import views
  
      app_name = 'polls'
      urlpatterns = [
 
</s> remove from django.conf.urls import url
 </s> add  </s> remove         url(r'^articles/([0-9]{4})/$', views.year_archive, name='news-year-archive'),
 </s> add         path('articles/<int:year>/', views.year_archive, name='news-year-archive'), </s> remove         url(r'^publishers/$', PublisherList.as_view()),
 </s> add         path('publishers/', PublisherList.as_view()), </s> remove            url(r'^static/(?P<path>.*)$', views.serve),
 </s> add            re_path(r'^static/(?P<path>.*)$', views.serve),
    from django.urls import path
  
  .. snippet::
      :filename: polls/urls.py
  
    from django.urls import path
  
      from . import views
  
      app_name = 'polls'
      urlpatterns = [
keep keep keep keep replace keep keep keep keep keep
 Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.

Thanks Aymeric Augustin for shepherding the DEP and patch review.
Thanks Marten Kenbeek and Tim Graham for contributing to the code.
Thanks Tom Christie, Shai Berger, and Tim Graham for the docs. 
docs/intro/tutorial03.txt