X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..30423c0a921a37cc2213e83309d5abe04399ba15:/src/cover/urls.py?ds=sidebyside diff --git a/src/cover/urls.py b/src/cover/urls.py index 1146f62d..febe3f0f 100644 --- a/src/cover/urls.py +++ b/src/cover/urls.py @@ -3,19 +3,20 @@ # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # -from django.conf.urls import patterns, url +from django.conf.urls import url +from . import views -urlpatterns = patterns('cover.views', - url(r'^preview/$', 'preview_from_xml', name='cover_preview'), - url(r'^preview/(?P[^/]+)/$', 'preview', name='cover_preview'), +urlpatterns = [ + url(r'^preview/$', views.preview_from_xml, name='cover_preview'), + url(r'^preview/(?P[^/]+)/$', views.preview, name='cover_preview'), url(r'^preview/(?P[^/]+)/(?P[^/]+)/$', - 'preview', name='cover_preview'), + views.preview, name='cover_preview'), url(r'^preview/(?P[^/]+)/(?P[^/]+)/(?P\d+)/$', - 'preview', name='cover_preview'), + views.preview, name='cover_preview'), - url(r'^image/$', 'image_list', name='cover_image_list'), - url(r'^image/(?P\d+)/?$', 'image', name='cover_image'), - url(r'^image/(?P\d+)/file/', 'image_file', name='cover_file'), - url(r'^add_image/$', 'add_image', name='cover_add_image'), -) + url(r'^image/$', views.image_list, name='cover_image_list'), + url(r'^image/(?P\d+)/?$', views.image, name='cover_image'), + url(r'^image/(?P\d+)/file/', views.image_file, name='cover_file'), + url(r'^add_image/$', views.add_image, name='cover_add_image'), +]