我想在我的應用程序中創建一個重置密碼功能,並在我的urls.py
中添加以下行。Django錯誤 - 反向爲'password_reset_confirm'與參數'()'和關鍵字參數'
urls.py
url(r'^resetpassword/passwordsent/$', 'django.contrib.auth.views.password_reset_done', name='password_reset_done'),
url(r'^resetpassword/$', 'django.contrib.auth.views.password_reset'),
url(r'^reset/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm'),
url(r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete'),
但是,當我進入上電覆位密碼我的電子郵件ID,它顯示一個錯誤,我無法理解。 Reverse for 'password_reset_confirm' with arguments '()' and keyword arguments '
我已經通過了一些建議,但都沒有工作。任何人都可以幫助我解決這個錯誤?
見下面的圖片:
我
請說明您在觸發器的步驟錯誤。 –
好像我已經通過更新這個url url來解決了這個錯誤(error),('''''')/('P [0-9A-Za-z] +) - (?P 。+)/ $',' django.contrib.auth.views.password_reset_confirm',name ='password_reset_confirm'),' –
python
我剛剛爲它添加了一個名稱,但現在它顯示連接被拒絕:/ – python