from django.conf.urls import patterns, url from anonsurvey import views from django.views.generic import TemplateView urlpatterns = patterns( '', url(r'^$', views.SurveysView.as_view(), name='surveys'), url(r'^survey_thanks/$', TemplateView.as_view(template_name='anonsurvey/survey_thanks.html'), name='survey_thanks'), url(r'^(?P[\w-]+)/form/$', views.SurveyView.as_view(), name='survey'), url(r'^(?P\d+)/complete/$', views.complete_survey, name="survey_complete"), )