X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b95b09260db87f6665bfcef3fb4f7c19f8acb666..265d73dffcdea6560f38087eac0219777084c181:/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'), ]