If I have a URL Like this:
url(r'^reset/(?P<uid>\w+)/(?P<token>\w+)/$', 'django.contrib.auth.views.password_reset_confirm', name="reset_password")
and a URL tag like this:
{% url 'reset_password' uid=uid token=token %}
Why do I get this error when I try to render the page in which the tag is contained:
Reverse for 'reset_password' with arguments '()' and keyword arguments not found
The both the uid and token are valid strings.
from django.core.urlresolvers import reverse
and thenreverse('reset_password', kwargs={'uid':uid, 'token':token})
see if you get more info. Also, if your url conf is part of an app, make sure it's included in the main url conf. – Syblesybleyuid
andtoken
variables in context in your template? – Flavescent