I managed to get the stock standard User Creation Form to work. Which included just the username, password1 and password2 field. However, when I try to include the email fie
forms.py
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
class SignupForm(UserCreationForm):
class Meta:
model = User
fields = ("username", "email",)
views.py
from django.urls import reverse_lazy
from django.views import generic
from accounts.forms import SignupForm
class SignUpView(generic.CreateView):
form_class = SignupForm
success_url = reverse_lazy('login')
template_name = 'stories/register.html'