Compare commits

...

2 commits

Author SHA1 Message Date
11d09a69fc Utilisation de Django 6 2026-04-04 16:55:31 +02:00
6a6761596d Champ connexion username comme EmailField 2026-04-04 16:54:26 +02:00
3 changed files with 8 additions and 2 deletions

View file

@ -3,6 +3,7 @@ from datetime import date, timedelta
from django.conf import settings
from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin
from django.contrib.auth.views import LoginView as DjangoLoginView
from django.db.models.functions import Lower
from django.http import HttpResponse
from django.urls import reverse_lazy
@ -10,7 +11,7 @@ from django.views.generic import (
CreateView, DeleteView, ListView, TemplateView, UpdateView, View
)
from .forms import ChantEditForm, MembreEditForm
from .forms import ChantEditForm, LoginForm, MembreEditForm
from .models import Agenda, Chant, Document, Membre
@ -47,6 +48,10 @@ class MediaServeView(LoginRequiredMixin, View):
})
class LoginView(DjangoLoginView):
form_class = LoginForm
class PresentationView(TemplateView):
template_name="presentation.html"

View file

@ -16,6 +16,7 @@ urlpatterns = [
cache_page(3600 * 24)(views.ManifestView.as_view()), name="manifest"
),
path("admin/", admin.site.urls),
path("accounts/login/", views.LoginView.as_view(), name="login"),
path("accounts/", include("django.contrib.auth.urls")),
path("", views.HomeView.as_view(), name="home"),
#path("v2", TemplateView.as_view(template_name="index2.html"), name="homev2"),

View file

@ -1,2 +1,2 @@
django==5.2.*
django==6.0.*
pillow==11.3.*