Password reset function error


#1

Reverse for ‘django.contrib.auth.views.password_reset_comfirm’ with arguments ‘()’ and keyword arguments ‘{u’uidb64’: ‘MQ’, u’token’: u’44y-ae2451a501d9ccc580a8’}’ not found. 0 pattern(s) tried: []

When I try to submit for password reset email it fail.

here is my url.py code for password reset
url(r’^accounts/password/reset/(?P[0-9A-Za-z_-]+)/(?P[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$’,
password_reset_confirm,
{‘template_name’: ‘registration/password_reset_confirm.html’},

{% autoescape off %}

You’re receiving this email because you requested a password reset. Please go to the folowing
page and choice a new password:
{% block reset_link %}
{{ protocol }}://192.168.1.24:8000{% url ‘django.contrib.auth.views.password_reset_comfirm’ uidb64=uid token=token %}
{% endblock %}
{% endautoescape %}


#2

it solve. it is the indentation of the url.py


#3

Thanks for letting me know! :D Best of luck with everything else.