Hey everyone,

been learning Django for a week or so ago now,

Today I have been having issues with the Django reset_password view after I 
have added namespace to my app

path('reset_password/', 
PasswordResetView.as_view(template_name='accounts/reset_password.html'),
     name='reset_password'),



Error:

NoReverseMatch at /account/reset_password/ 

Reverse for 'password_reset_done' not found. 'password_reset_done' is not a 
valid view function or pattern name.

Request Method: POST 
Request URL: http://127.0.0.1:8000/account/reset_password/ 
Django Version: 2.1.1 
Exception Type: NoReverseMatch 
Exception Value: 

Reverse for 'password_reset_done' not found. 'password_reset_done' is not a 
valid view function or pattern name.

Exception Location: 
C:\Users\gilbe\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\urls\resolvers.py
 
in _reverse_with_prefix, line 622 
Python Executable: 
C:\Users\gilbe\AppData\Local\Programs\Python\Python37-32\python.exe 
Python Version: 3.7.0 
Python Path: 

['C:\\Users\\gilbe\\Desktop\\testapplication',
 'C:\\Users\\gilbe\\Desktop\\testapplication',
 
'C:\\Users\\gilbe\\AppData\\Local\\Programs\\Python\\Python37-32\\python37.zip',
 'C:\\Users\\gilbe\\AppData\\Local\\Programs\\Python\\Python37-32\\DLLs',
 'C:\\Users\\gilbe\\AppData\\Local\\Programs\\Python\\Python37-32\\lib',
 'C:\\Users\\gilbe\\AppData\\Local\\Programs\\Python\\Python37-32',
 
'C:\\Users\\gilbe\\AppData\\Local\\Programs\\Python\\Python37-32\\lib\\site-packages',
 'C:\\Program Files\\JetBrains\\PyCharm '
 '2018.2.3\\helpers\\pycharm_matplotlib_backend']

Server time: Sat, 15 Sep 2018 11:36:06 +0000
I have looked around and the documentation I have found is referencing 
Django 1 {1.7 … 1.10}

this mentions adding another argument after template name 
post_reset_redirect however this seems to be causing more problems

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b572d959-1ea0-4f81-97da-033a9e37fc1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to