from django.contrib.auth.mixins import LoginRequiredMixin
#Abbreviation
class Top(LoginRequiredMixin, generic.TemplateView):
template_name = 'hogehogeapp/index.html'☛☛☛ Enter the application name for the hogehogeapp part
from django.contrib.auth.decorators import login_required
@login_required
def hogehoge(request, pk):
hogehoge
Recommended Posts