Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#31279 closed Bug (invalid)

PasswordResetView always defaulting to the admin page and not to template. — at Version 1

Reported by: git0fun Owned by: nobody
Component: contrib.auth Version: 3.0
Severity: Normal Keywords: PasswordResetView
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Mariusz Felisiak)

url(r'^accounts/password-reset/$', auth_views.PasswordResetView.as_view(email_template_name = 'registration/password_reset_email.html', extra_email_context = None, form_class = PasswordResetForm, from_email = None, html_email_template_name = None, subject_template_name = 'registration/password_reset_subject.txt', success_url = reverse_lazy('password_reset_done'), template_name = 'registration/password_reset_form.html', title = _('Password reset'), token_generator = default_token_generator ), name='password_reset'),
     
url(r'^accounts/', include('django.contrib.auth.urls')),
url(r'^admin/', admin.site.urls),
url(r'^course/', include('courses.urls', namespace='courses')),

PasswordResetView is always defaulting to the admin page and not to template
No problems with login ..auth_views.PasswordResetView..as_view(), kwargs{...} doesn't work too.

Change History (1)

comment:1 by Mariusz Felisiak, 5 years ago

Description: modified (diff)
Resolution: invalid
Status: newclosed
Summary: PasswordResetView always defaulting to the admin page and not to templatePasswordResetView always defaulting to the admin page and not to template.

I'm not really sure what doesn't work for you, but it looks like a typo in your URL, it should be password_reset instead of password-reset. It's not an issue in Django.

Closing per TicketClosingReasons/UseSupportChannels.

Note: See TracTickets for help on using tickets.
Back to Top