X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/56145861cf5fa01c5fbb429d40242e0a16189ed1..282654ea252af7e2d30740b40bccfc9be61dd3a8:/src/cover/urls.py?ds=sidebyside diff --git a/src/cover/urls.py b/src/cover/urls.py index febe3f0f..20cd7d60 100644 --- a/src/cover/urls.py +++ b/src/cover/urls.py @@ -1,22 +1,21 @@ -# -*- coding: utf-8 -*- -# # 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 url +from django.urls import path from . import views 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[^/]+)/$', + path('preview/', views.preview_from_xml, name='cover_preview'), + path('preview//', views.preview, name='cover_preview'), + path('preview///', views.preview, name='cover_preview'), - url(r'^preview/(?P[^/]+)/(?P[^/]+)/(?P\d+)/$', + path('preview////', views.preview, name='cover_preview'), - 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'), + path('image/', views.image_list, name='cover_image_list'), + path('image//', views.image, name='cover_image'), + path('image//file/', views.image_file, name='cover_file'), + path('add_image/', views.add_image, name='cover_add_image'), + path('quick-import//', views.quick_import, name='cover_quick_import'), ]