NoReverseMatch on password_Reset_confirm

前端 未结 5 1980
梦如初夏
梦如初夏 2020-12-16 13:05

I have a problem getting password_Reset_confirm bit working.

url:

(r\'^password_reset/$\', \'django.contrib.auth.views.password_reset\'),
(r\'^passwo         


        
5条回答
  •  心在旅途
    2020-12-16 13:28

    When using the url template tag, you need to specify the view and not the url itself. Since you are using 'django.contrib.auth.views.password_reset_confirm' in your URLConf you should use it like this:

    {% url 'django.contrib.auth.views.password_reset_confirm' ... %}
    

    More on the url template tag on Django's Built-in template tags and filters documentation.

提交回复
热议问题