from django.contrib.auth.mixins import LoginRequiredMixin
#Abréviation
class Top(LoginRequiredMixin, generic.TemplateView):
template_name = 'hogehogeapp/index.html'☛☛☛ Entrez le nom de l'application pour la partie hogehogeapp
from django.contrib.auth.decorators import login_required
@login_required
def hogehoge(request, pk):
hogehoge
Recommended Posts