X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/d12ee4e0ec425e7f508c93ad1295a21a67ae1a30..f3e40709f5b8ebcdf42bbfd705cf8043759d9e64:/contact/urls.py?ds=sidebyside diff --git a/contact/urls.py b/contact/urls.py index de72e82..ed6f49c 100644 --- a/contact/urls.py +++ b/contact/urls.py @@ -1,9 +1,14 @@ -from django.conf.urls.defaults import * +# -*- 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'), + url(r'^attachment/(?P\d+)/(?P[^/]+)/(?P[0-9a-zA-Z]+)/$', views.attachment_key, + name='contact_attachment_key'), + url(r'^results/(?P\d+)/(?P[0-9a-f]+)/', views.results, name='contact_results'), )