django-auth-tutorial icon indicating copy to clipboard operation
django-auth-tutorial copied to clipboard

no file is generated

Open rajeshkalluri009 opened this issue 5 years ago • 1 comments

Hi, thanks for the code During password reset, i could not see any new file is generated in sent_emails folder. Please suggest

rajeshkalluri009 avatar Oct 27 '20 07:10 rajeshkalluri009

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'

kayode-adechinan avatar Jan 01 '21 15:01 kayode-adechinan