You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
410 B
19 lines
410 B
from django.contrib.auth.mixins import LoginRequiredMixin
|
|
|
|
# Create your views here.
|
|
from django.views.generic import TemplateView, ListView
|
|
|
|
|
|
class ProtectedView(LoginRequiredMixin, TemplateView):
|
|
pass
|
|
|
|
|
|
class ProtectedListView(LoginRequiredMixin, ListView):
|
|
pass
|
|
|
|
class Handler404View(TemplateView):
|
|
template_name = '404.html'
|
|
|
|
|
|
class Handler500View(TemplateView):
|
|
template_name = '500.html'
|
|
|