fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Book with donation.
[wolnelektury.git]
/
src
/
chunks
/
urls.py
diff --git
a/src/chunks/urls.py
b/src/chunks/urls.py
index
005cadd
..
a1abc7d
100644
(file)
--- a/
src/chunks/urls.py
+++ b/
src/chunks/urls.py
@@
-1,9
+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.
#
# 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 patterns, url
+from django.urls import path
+from . import views
-urlpatterns =
patterns('chunks.views',
-
url(r'^chunk/(?P<key>.+)\.(?P<lang>.+)\.html$', 'chunk', name='chunk
'),
-)
+urlpatterns =
[
+
path('attachment/<key>.<slug:ext>', views.attachment, name='chunks_attachment
'),
+]