django-auth-tutorial
django-auth-tutorial copied to clipboard
no file is generated
Hi, thanks for the code During password reset, i could not see any new file is generated in sent_emails folder. Please suggest
step 1: make a custom usercreationform
class CustomUserCreationForm(UserCreationForm):
class Meta:
model = User
fields = UserCreationForm.Meta.fields + ("email",)
step 2 : add the custom usercreationform to your view
class SignUpView(generic.CreateView):
form_class = CustomUserCreationForm
success_url = reverse_lazy('login')
template_name = 'registration/signup.html'