X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..2ecf0995e67a4fefb003e66a2490d4895b2c0b07:/src/lesmianator/urls.py diff --git a/src/lesmianator/urls.py b/src/lesmianator/urls.py index 1770140b9..15d6f252d 100644 --- a/src/lesmianator/urls.py +++ b/src/lesmianator/urls.py @@ -1,14 +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. # -from django.conf.urls import url, patterns +from django.conf.urls import url +from . import views -urlpatterns = patterns('lesmianator.views', - url(r'^$', 'main_page', name='lesmianator'), - url(r'^wiersz/$', 'new_poem', name='new_poem'), - url(r'^lektura/(?P[a-z0-9-]+)/$', 'poem_from_book', name='poem_from_book'), - url(r'^polka/(?P[a-zA-Z0-9-]+)/$', 'poem_from_set', name='poem_from_set'), - url(r'^wiersz/(?P[a-zA-Z0-9-]+)/$', 'get_poem', name='get_poem'), -) +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'), +]