Ejemplo n.º 1
0
# -*- coding: utf-8 -*-

from django.conf.urls import url

from survey.views import ConfirmView, IndexView, SurveyCompleted, SurveyDetail
from survey.views.survey_result import serve_result_csv

urlpatterns = [
    url(r"^$", IndexView.as_view(), name="survey-list"),
    url(r"^(?P<id>\d+)/", SurveyDetail.as_view(), name="survey-detail"),
    url(r"^csv/(?P<primary_key>\d+)/", serve_result_csv, name="survey-result"),
    url(r"^(?P<id>\d+)/completed/",
        SurveyCompleted.as_view(),
        name="survey-completed"),
    url(r"^(?P<id>\d+)-(?P<step>\d+)/",
        SurveyDetail.as_view(),
        name="survey-detail-step"),
    url(r"^confirm/(?P<uuid>\w+)/",
        ConfirmView.as_view(),
        name="survey-confirmation"),
]
Ejemplo n.º 2
0
# -*- coding: utf-8 -*-

from django.conf.urls import url

from survey.views import ConfirmView, IndexView, SurveyCompleted, SurveyDetail
from survey.views.survey_result import serve_result_csv

urlpatterns = [
    url(r"^$", IndexView.as_view(), name="survey-list"),
    url(r"^(?P<id>[0-9a-f-]+)/", SurveyDetail.as_view(), name="survey-detail"),
    url(r"^csv/(?P<primary_key>\d+)/", serve_result_csv, name="survey-result"),
    url(r"^(?P<id>[0-9a-f-]+)/completed/", SurveyCompleted.as_view(), name="survey-completed"),
    url(r"^(?P<id>[0-9a-f-]+)-(?P<step>\d+)/", SurveyDetail.as_view(), name="survey-detail-step"),
    url(r"^confirm/(?P<uuid>\w+)/", ConfirmView.as_view(), name="survey-confirmation"),
]
Ejemplo n.º 3
0
from survey.views import ConfirmView, IndexView, SurveyCompleted, SurveyDetail
from survey.views import ManageSurveyListView, SurveyCreateView, SurveyUpdateView
from survey.views import SurveyDeleteView, SurveyCategoryUpdateView, QuestionCreateUpdateView
from survey.views import CategoryOrderView, QuestionOrderView, CategoryQuestionListView
from survey.views import QuestionDeleteView, SurveyResults
from survey.views.survey_result import serve_result_csv

app_name = 'survey'

urlpatterns = [
    path('', IndexView.as_view(), name="survey-list"),
    path('<int:id>/', SurveyDetail.as_view(), name="survey-detail"),
    # path('csv/<int:primary_key>/', serve_result_csv, name="survey-result"),
    path("<int:id>/completed/", SurveyCompleted.as_view(), name="survey-completed"),
    # path("<int:id>-<int:step>/", SurveyDetail.as_view(), name="survey-detail-step"),
    path("confirm/<str:uuid>/", ConfirmView.as_view(), name="survey-confirmation"),

    path('mine/',
         ManageSurveyListView.as_view(),
         name='manage_survey_list'),
    path('create/',
         SurveyCreateView.as_view(),
         name='survey_create'),
    path('<pk>/edit/',
         SurveyUpdateView.as_view(),
         name='survey_edit'),
    path('<pk>/delete/',
         SurveyDeleteView.as_view(),
         name='survey_delete'),
    path('<survey_id>/results/',
         SurveyResults.as_view(),
Ejemplo n.º 4
0
# -*- coding: utf-8 -*-

from django.urls import path
from django.views.decorators.clickjacking import xframe_options_exempt

from survey.views import ConfirmView, IndexView, SurveyCompleted, SurveyDetail
from survey.views.survey_result import serve_result_csv

app_name = "survey"

urlpatterns = [
    path("", xframe_options_exempt(IndexView.as_view()), name="survey-list"),
    path("confirm/<str:uuid>/",
         xframe_options_exempt(ConfirmView.as_view()),
         name="survey-confirmation"),
    path("csv/<int:primary_key>/", serve_result_csv, name="survey-result"),
    path("<slug:slug>/completed/",
         xframe_options_exempt(SurveyCompleted.as_view()),
         name="survey-completed"),
    path("<slug:slug>-<int:step>/",
         xframe_options_exempt(SurveyDetail.as_view()),
         name="survey-detail-step"),
    path("<slug:slug>/",
         xframe_options_exempt(SurveyDetail.as_view()),
         name="survey-detail-slug"),
]
Ejemplo n.º 5
0
# -*- coding: utf-8 -*-

from django.conf.urls import url

from survey.views import ConfirmView, IndexView, SurveyCompleted, SurveyDetail
from survey.views.survey_result import serve_result_csv

urlpatterns = [
    url(r'^$', IndexView.as_view(), name='survey-list'),
    url(r'^(?P<id>\d+)/', SurveyDetail.as_view(), name='survey-detail'),
    url(r'^csv/(?P<primary_key>\d+)/', serve_result_csv, name='survey-result'),
    url(r'^(?P<id>\d+)/completed/', SurveyCompleted.as_view(),
        name='survey-completed'),
    url(r'^(?P<id>\d+)-(?P<step>\d+)/', SurveyDetail.as_view(),
        name='survey-detail-step'),
    url(r'^confirm/(?P<uuid>\w+)/', ConfirmView.as_view(),
        name='survey-confirmation'),
]
Ejemplo n.º 6
0
# -*- coding: utf-8 -*-

from __future__ import (
    absolute_import, division, print_function, unicode_literals
)

from django.conf.urls import url
from future import standard_library
from survey.views import ConfirmView, IndexView, SurveyCompleted, SurveyDetail
from survey.views.survey_result import serve_result_csv
standard_library.install_aliases()


urlpatterns = [
    url(r'^$', IndexView.as_view(), name='survey-list'),
    url(r'^(?P<id>\d+)/', SurveyDetail.as_view(), name='survey-detail'),
    url(r'^csv/(?P<pk>\d+)/', serve_result_csv, name='survey-result'),
    url(r'^(?P<id>\d+)/completed/', SurveyCompleted.as_view(),
        name='survey-completed'),
    url(r'^(?P<id>\d+)-(?P<step>\d+)/', SurveyDetail.as_view(),
        name='survey-detail-step'),
    url(r'^confirm/(?P<uuid>\w+)/', ConfirmView.as_view(),
        name='survey-confirmation'),
]