X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b95b09260db87f6665bfcef3fb4f7c19f8acb666..7bbeecb5dd5c5f20120f9e40e41568a3bff1caa4:/src/lesmianator/urls.py?ds=inline diff --git a/src/lesmianator/urls.py b/src/lesmianator/urls.py index 2685e83e2..d8138811a 100644 --- a/src/lesmianator/urls.py +++ b/src/lesmianator/urls.py @@ -1,15 +1,14 @@ -# -*- coding: utf-8 -*- -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. # -from django.conf.urls import url +from django.urls import path from . import views urlpatterns = [ - url(r'^$', views.main_page, name='lesmianator'), - url(r'^wiersz/$', views.new_poem, name='new_poem'), - url(r'^lektura/(?P[a-z0-9-]+)/$', views.poem_from_book, name='poem_from_book'), - url(r'^polka/(?P[a-zA-Z0-9-]+)/$', views.poem_from_set, name='poem_from_set'), - url(r'^wiersz/(?P[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//', views.poem_from_book, name='poem_from_book'), + path('polka//', views.poem_from_set, name='poem_from_set'), + path('wiersz//', views.get_poem, name='get_poem'), ]