- url(r'^$', views.main_page, name='lesmianator'),
- url(r'^wiersz/$', views.new_poem, name='new_poem'),
- url(r'^lektura/(?P<slug>[a-z0-9-]+)/$', views.poem_from_book, name='poem_from_book'),
- url(r'^polka/(?P<shelf>[a-zA-Z0-9-]+)/$', views.poem_from_set, name='poem_from_set'),
- url(r'^wiersz/(?P<poem>[a-zA-Z0-9-]+)/$', views.get_poem, name='get_poem'),
+ path('', views.main_page, name='lesmianator'),
+ path('wiersz/', views.new_poem, name='new_poem'),
+ path('lektura/<slug:slug>/', views.poem_from_book, name='poem_from_book'),
+ path('polka/<shelf>/', views.poem_from_set, name='poem_from_set'),
+ path('wiersz/<poem>/', views.get_poem, name='get_poem'),