# Path: test_projects/django18/likert_test_app/views.py
# class SurveyCreateView(CreateView):
#     model = ParametersModel
#     # fields = ['item', 'another_item']
#     fields = [
#         'ice_cream_is_yummy', 'item', 'questions_should_not_be_optional']
#     # form_class = SurveyForm
#     template_name = 'likert/add.html'
#     success_url = reverse_lazy('likert_added')
# 
# class SurveyDetailView(DetailView):
#     context_object_name = 'survey'
#     model = ParametersModel
#     template_name = 'likert/detail.html'
# 
# class SurveyListView(ListView):
#     context_object_name = 'surveys'
#     model = ParametersModel
#     template_name = 'likert/index.html'


from django.conf.urls import url
from django.views.generic import TemplateView
from .views import SurveyCreateView, SurveyDetailView, SurveyListView
# -*- coding: utf-8 -*-
from __future__ import unicode_literals




urlpatterns = [
    url(r'^$', SurveyListView.as_view(), name='likert_list'),

# Path: test_projects/django18/likert_test_app/views.py
# class SurveyCreateView(CreateView):
#     model = ParametersModel
#     # fields = ['item', 'another_item']
#     fields = [
#         'ice_cream_is_yummy', 'item', 'questions_should_not_be_optional']
#     # form_class = SurveyForm
#     template_name = 'likert/add.html'
#     success_url = reverse_lazy('likert_added')
# 
# class SurveyDetailView(DetailView):
#     context_object_name = 'survey'
#     model = ParametersModel
#     template_name = 'likert/detail.html'
# 
# class SurveyListView(ListView):
#     context_object_name = 'surveys'
#     model = ParametersModel
#     template_name = 'likert/index.html'


# Path: test_projects/django18/likert_test_app/urls.py
from django.conf.urls import url
from django.views.generic import TemplateView
from .views import SurveyCreateView, SurveyDetailView, SurveyListView

# -*- coding: utf-8 -*-
from __future__ import unicode_literals




urlpatterns = [
    url(r'^$', SurveyListView.as_view(), name='likert_list'),

    url(r'^add/', SurveyCreateView.as_view(), name="likert_add"),