Я пытаюсь использовать настройку сброса пароля, которая идет с Django, но документация не очень хороша для этого. Я использую Django 1.0 и получаю эту ошибку:
Caught an exception while rendering: Reverse for 'mysite.django.contrib.auth.views.password_reset_confirm' with arguments '()' and keyword arguments ...
в моем urlconf у меня есть что-то вроде этого:
#django.contrib.auth.views
urlpatterns = patterns('django.contrib.auth.views',
(r'^password_reset/$', 'password_reset', {'template_name': 'accounts/registration/password_reset_form.html', 'email_template_name':'accounts/registration/password_reset_email.html', 'post_reset_redirect':'accounts/login/'}),
(r'^password_reset/done/$', 'password_reset_done', {'template_name': 'accounts/registration/password_reset_done.html'}),
(r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'password_reset_confirm', {'template_name': 'accounts/registration/password_reset_confirm.html', 'post_reset_redirect':'accounts/login/', 'post_reset_redirect':'accounts/reset/done/'}),
(r'^reset/done/$', 'password_reset_complete', {'template_name': 'accounts/registration/password_reset_complete.html'}),
)
Проблема, кажется, в этом файле:
password_reset_email.html
в строке 7
{% url django.contrib.auth.views.password_reset_confirm uidb36=uid, token=token %}
Я в растерянности относительно того, что происходит, поэтому любая помощь будет оценена.
Спасибо