1 from django.conf.urls import patterns, url
4 urlpatterns = patterns('contact.views',
5 url(r'^(?P<form_tag>[^/]+)/$', views.form, name='contact_form'),
6 url(r'^(?P<form_tag>[^/]+)/thanks/$', views.thanks, name='contact_thanks'),
7 url(r'^attachment/(?P<contact_id>\d+)/(?P<tag>[^/]+)/$',
8 views.attachment, name='contact_attachment'),