Registration with UserCreationForm
Let users sign up safely.
Let People Sign Up
Login assumes accounts already exist. To let visitors create their own, you need a registration view backed by a sign-up form. ✍️
Meet UserCreationForm
Django gives you UserCreationForm, a ready form with username and two password fields that creates a User on save.
from django.contrib.auth.forms import UserCreationFormAll lessons in this course
- The User Model and authenticate()
- login, logout, and Auth Views
- Registration with UserCreationForm
- login_required and Protecting Views