X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/05f67adb27390c7a9cf214e83550d3bbca88c8f2..97487ee6a55f54bd483c20557fb554fea4f28844:/apps/cover/urls.py?ds=inline diff --git a/apps/cover/urls.py b/apps/cover/urls.py index 2337d47a..31d0c65a 100644 --- a/apps/cover/urls.py +++ b/apps/cover/urls.py @@ -3,16 +3,15 @@ # 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.defaults import patterns, url +from django.conf.urls import patterns, url -urlpatterns = patterns('cover.views', +urlpatterns = patterns( + 'cover.views', url(r'^preview/$', 'preview_from_xml', name='cover_preview'), url(r'^preview/(?P[^/]+)/$', 'preview', name='cover_preview'), - url(r'^preview/(?P[^/]+)/(?P[^/]+)/$', - 'preview', name='cover_preview'), - url(r'^preview/(?P[^/]+)/(?P[^/]+)/(?P\d+)/$', - 'preview', name='cover_preview'), + url(r'^preview/(?P[^/]+)/(?P[^/]+)/$', 'preview', name='cover_preview'), + url(r'^preview/(?P[^/]+)/(?P[^/]+)/(?P\d+)/$', 'preview', name='cover_preview'), url(r'^image/$', 'image_list', name='cover_image_list'), url(r'^image/(?P\d+)/?$', 'image', name='cover_image'),