X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b95b09260db87f6665bfcef3fb4f7c19f8acb666..af339a5c1a69ec22a6f1d5940cde313953948368:/src/chunks/urls.py diff --git a/src/chunks/urls.py b/src/chunks/urls.py index 0536a18b9..a1abc7df2 100644 --- a/src/chunks/urls.py +++ b/src/chunks/urls.py @@ -1,11 +1,9 @@ -# -*- 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 +from django.urls import path from . import views - urlpatterns = [ - url(r'^chunk/(?P.+)\.(?P.+)\.html$', views.chunk, name='chunk'), + path('attachment/.', views.attachment, name='chunks_attachment'), ]