la-chariotte/la_chariotte/accounts/views.py
2023-05-24 13:58:34 +02:00

11 lines
337 B
Python

from django.contrib.auth.views import LoginView
from django.urls import reverse_lazy
from django.views import generic
from .forms import CustomUserCreationForm
class SignUpView(generic.CreateView):
form_class = CustomUserCreationForm
success_url = reverse_lazy("accounts:login")
template_name = "registration/signup.html"