Changes between Initial Version and Version 1 of Ticket #31279


Ignore:
Timestamp:
Feb 17, 2020, 12:30:47 AM (5 years ago)
Author:
Mariusz Felisiak
Comment:

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.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31279

    • Property Resolutioninvalid
    • Property Status newclosed
    • Property Summary PasswordResetView always defaulting to the admin page and not to templatePasswordResetView always defaulting to the admin page and not to template.
  • Ticket #31279 – Description

    initial v1  
     1{{{
    12url(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'),
    2    
    3    
     3     
    44url(r'^accounts/', include('django.contrib.auth.urls')),
    55url(r'^admin/', admin.site.urls),
    66url(r'^course/', include('courses.urls', namespace='courses')),
     7}}}
    78
    8 PasswordResetView is always defaulting to the admin page and not to template
    9 No problems with login
    10 ..auth_views.PasswordResetView..as_view(), kwargs{...} doesn't work too.
     9`PasswordResetView` is always defaulting to the admin page and not to template
     10No problems with login `..auth_views.PasswordResetView..as_view(), kwargs{...}` doesn't work too.
Back to Top