S
S
sortfact3332020-11-25 12:51:09
Django
sortfact333, 2020-11-25 12:51:09

Why doesn't it redirect me to the correct page?

I created a link

app_name = 'login'
urlpatterns = [
path('done/', auth_views.PasswordResetDoneView.as_view(template_name='password_reset_done.html'), name = 'password_reset_done'),
]

And after changing the password, I should have been redirected to
127.0.0.1:8000/login/done

but sent me to
127.0.0.1:8000/log/reset/done

How to change the link and template for password recovery?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
gromyko21, 2020-11-26
@gromyko21

Make a redirect at the end of the function in the view?
https://docs.djangoproject.com/en/3.1/topics/http/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question