X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/b2789efe30a42c1c9780c6cf132d905ea7e41c87..5d78f2b7af4ee0f1aa48f1e2538ef40ea6b19b00:/contact/urls.py?ds=inline diff --git a/contact/urls.py b/contact/urls.py index 7f8d4c4..823470b 100644 --- a/contact/urls.py +++ b/contact/urls.py @@ -1,9 +1,11 @@ +# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from . import views -urlpatterns = patterns('contact.views', +urlpatterns = patterns( + 'contact.views', url(r'^(?P[^/]+)/$', views.form, name='contact_form'), + url(r'^(?P[^/]+)/edit/(?P[0-9]+)/(?P[0-9a-zA-Z]+)/$', views.form, name='edit_form'), url(r'^(?P[^/]+)/thanks/$', views.thanks, name='contact_thanks'), - url(r'^attachment/(?P\d+)/(?P[^/]+)/$', - views.attachment, name='contact_attachment'), + url(r'^attachment/(?P\d+)/(?P[^/]+)/$', views.attachment, name='contact_attachment'), )