Add signup and login pages

This commit is contained in:
2024-06-29 19:29:47 -04:00
parent 3b0746ed83
commit 589d109cec
8 changed files with 75 additions and 3 deletions

6
accounts/urls.py Normal file
View File

@@ -0,0 +1,6 @@
from django.urls import path
from .views import SignUpView
urlpatterns = [
path("signup/", SignUpView.as_view(), name="signup"),
]

View File

@@ -1,3 +1,10 @@
from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic.edit import CreateView
# Create your views here.
from .forms import CustomUserCreationForm
class SignUpView(CreateView):
form_class = CustomUserCreationForm
sucess_url = reverse_lazy("login")
template_name = "registration/signup.html"