Base templates

This commit is contained in:
Alexandre Iooss 2021-09-22 19:32:04 +02:00
parent 76ed93ff33
commit 5610ade1fe
19 changed files with 426 additions and 2 deletions

8
photo21/views.py Normal file
View file

@ -0,0 +1,8 @@
# Copyright (C) 2021 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import TemplateView
class IndexView(LoginRequiredMixin, TemplateView):
template_name = "index.html"