first commit - first working version

This commit is contained in:
darko-poljak 2014-03-02 00:20:01 +01:00
commit f0d574d192
20 changed files with 1480 additions and 0 deletions

16
anonsurvey/urls.py Normal file
View file

@ -0,0 +1,16 @@
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<slug>[\w-]+)/form/$', views.SurveyView.as_view(),
name='survey'),
url(r'^(?P<pk>\d+)/complete/$', views.complete_survey,
name="survey_complete"),
)