1 2 3 4 5 6 7
from django.views.generic import CreateView from django.contrib.auth import forms class RegisterUser(CreateView): form_class = forms.UserCreationForm template_name = 'registration/register.html' success_url = '/'