0PricingLogin
Django Academy · Lesson

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 UserCreationForm

All lessons in this course

  1. The User Model and authenticate()
  2. login, logout, and Auth Views
  3. Registration with UserCreationForm
  4. login_required and Protecting Views
← Back to Django Academy