[Django] #31279: PasswordResetView always defaulting to the admin page and not to template

137 views
Skip to first unread message

Django

unread,
Feb 16, 2020, 6:22:57 AM2/16/20
to django-...@googlegroups.com
#31279: PasswordResetView always defaulting to the admin page and not to template
-------------------------------------+-------------------------------------
Reporter: git0fun | Owner: nobody
Type: Bug | Status: new
Component: | Version: 3.0
contrib.auth |
Severity: Normal | Keywords: PasswordResetView
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/31279>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 17, 2020, 1:30:49 AM2/17/20
to django-...@googlegroups.com
#31279: PasswordResetView always defaulting to the admin page and not to template.
-----------------------------------+--------------------------------------
Reporter: git0fun | Owner: nobody
Type: Bug | Status: closed
Component: contrib.auth | Version: 3.0
Severity: Normal | Resolution: invalid
Keywords: PasswordResetView | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by felixxm):

* status: new => closed
* resolution: => invalid


Old description:

> 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.

New description:

{{{


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.

--

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/31279#comment:1>

Django

unread,
Feb 17, 2020, 12:22:38 PM2/17/20
to django-...@googlegroups.com
#31279: PasswordResetView always defaulting to the admin page and not to template.
-----------------------------------+--------------------------------------

Reporter: git0fun | Owner: nobody
Type: Bug | Status: new
Component: contrib.auth | Version: 3.0
Severity: Normal | Resolution:
Keywords: PasswordResetView | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by git0fun):

* status: closed => new
* resolution: invalid =>


Comment:

Thanks for the reaction. The problem was not in de url.
The problem is somewhere in "HTTPS/HTTP".

--
Ticket URL: <https://code.djangoproject.com/ticket/31279#comment:2>

Django

unread,
Feb 17, 2020, 12:26:34 PM2/17/20
to django-...@googlegroups.com
#31279: PasswordResetView always defaulting to the admin page and not to template.
-----------------------------------+--------------------------------------
Reporter: git0fun | Owner: nobody
Type: Bug | Status: closed
Component: contrib.auth | Version: 3.0
Severity: Normal | Resolution: invalid

Keywords: PasswordResetView | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by felixxm):

* status: new => closed
* resolution: => invalid


Comment:

Nevertheless it is a support questions, and Trac is not a support channel.
Please TicketClosingReasons/UseSupportChannels.

--
Ticket URL: <https://code.djangoproject.com/ticket/31279#comment:3>

Reply all
Reply to author
Forward
0 new messages