More archeology.
[edumed.git] / src / contact / urls.py
1 # -*- coding: utf-8 -*-
2 from django.conf.urls import patterns, url
3 from . import views
4
5 urlpatterns = patterns(
6     'contact.views',
7     url(r'^(?P<form_tag>[^/]+)/$', views.form, name='contact_form'),
8     url(r'^(?P<form_tag>[^/]+)/edit/(?P<contact_id>[0-9]+)/(?P<key>[0-9a-zA-Z]+)/$', views.form, name='edit_form'),
9     url(r'^(?P<form_tag>[^/]+)/thanks/$', views.thanks, name='contact_thanks'),
10     url(r'^attachment/(?P<contact_id>\d+)/(?P<tag>[^/]+)/$', views.attachment, name='contact_attachment'),
11     url(r'^attachment/(?P<contact_id>\d+)/(?P<tag>[^/]+)/(?P<key>[0-9a-zA-Z]+)/$', views.attachment_key,
12         name='contact_attachment_key'),
13     url(r'^results/(?P<contact_id>\d+)/(?P<digest>[0-9a-f]+)/', views.results, name='contact_results'),
14 )