LINUX.ORG.RU

django-registration сменить или напомнить пароль

 ,


0

1

Регистрация пользователей производилась с помощью приложений django-registration-1.0. Как вызвать приложения позволяющие сменить пароль или напомнить его.

http://127.0.0.1:8000/accounts/password/reset/
NoReverseMatch at /accounts/password/reset/
Reverse for 'password_reset_done' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

http://127.0.0.1:8000/accounts/password/reset/34
Page not found (404)
Request Method: 	GET
Request URL: 	http://127.0.0.1:8000/accounts/password/reset/34
Using the URLconf defined in univ.urls, Django tried these URL patterns, in this order:
    accounts/register/$ [name='registration_register']
    ^accounts/ ^activate/complete/$ [name='registration_activation_complete']
    ^accounts/ ^activate/(?P<activation_key>\w+)/$ [name='registration_activate']
    ^accounts/ ^register/$ [name='registration_register']
    ^accounts/ ^register/complete/$ [name='registration_complete']
    ^accounts/ ^register/closed/$ [name='registration_disallowed']
    ^accounts/ ^login/$ [name='auth_login']
    ^accounts/ ^logout/$ [name='auth_logout']
    ^accounts/ ^password/change/$ [name='auth_password_change']
    ^accounts/ ^password/change/done/$ [name='auth_password_change_done']
    ^accounts/ ^password/reset/$ [name='auth_password_reset']
    ^accounts/ ^password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$ [name='auth_password_reset_confirm']
    ^accounts/ ^password/reset/complete/$ [name='auth_password_reset_complete']
    ^accounts/ ^password/reset/done/$ [name='auth_password_reset_done'] 

видимо вы вызываете reverse с параметром password_reset_done, а нужно auth_password_reset_done.

LeoK
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.