Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

QuizListView login required django

from django.views.generic import (
    ListView,
    DetailView
)
from django.contrib.auth.mixins import LoginRequiredMixin


class PollsListView(LoginRequiredMixin, ListView):
    model = Poll
    template_name = 'polls/index.html'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #QuizListView #login #required #django
ADD COMMENT
Topic
Name
2+5 =