X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/98b2c09ef1f1c8288a31517f61423264c6b3291c..2ecf0995e67a4fefb003e66a2490d4895b2c0b07:/src/contact/urls.py?ds=inline diff --git a/src/contact/urls.py b/src/contact/urls.py index f2ef9444e..9fbce2fce 100644 --- a/src/contact/urls.py +++ b/src/contact/urls.py @@ -1,11 +1,13 @@ -# -*- coding: utf-8 -*- -from django.conf.urls import patterns, url +# 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 . import views -urlpatterns = patterns( - 'contact.views', + +urlpatterns = [ url(r'^(?P[^/]+)/$', views.form, name='contact_form'), url(r'^(?P[^/]+)/thanks/$', views.thanks, name='contact_thanks'), url(r'^attachment/(?P\d+)/(?P[^/]+)/$', views.attachment, name='contact_attachment'), url(r'^results/(?P\d+)/(?P[0-9a-f]+)/', views.results, name='contact_results'), -) +]