from django.contrib.auth.mixins import LoginRequiredMixin # Create your views here. from django.views.generic import TemplateView class ProtectedView(LoginRequiredMixin, TemplateView): pass