Django reset_password_confirm TemplateSyntaxError problem -


when use django.contrib.auth.views.password_reset_confirm without arguments @ works , can render template without problem, when adding uidb36 , token arguments fails.

caught noreversematch while rendering: reverse 'django.contrib.auth.views.password_reset_confirm' arguments '()' , keyword arguments '{'uidb36': '111', 'token': '1111111111111'}' not found.

most issue urls.py. need setup right pattern grab uidb36 , token values passed url parameters. if not, throw similar error see above.

something like:

(r'^reset/(?p<uidb36>[0-9a-za-z]+)-(?p<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm', {'template_name' : 'registration/password_reset.html',  'post_reset_redirect': '/logout/' }) 

registration/password_reset.html - custom template

logout - custom logout action


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -