Password_reset_done Error When Attempting To Create Reset Password Authentication
Solution 1:
password_reset_done is within the exists namespace. It looks like you are trying to reverse the named URL without including the namespace argument somewhere. We would need to see your full traceback to see exactly where that is happening.
Since you are using the built-in auth views, the easiest fix would probably be to move your password reset handling up to your main urls.py. Notice in your traceback that the built-in password_reset view does this:
post_reset_redirect = reverse('password_reset_done')
The default implementation here is to reverse to password_reset_done without any namespace. Moving the relevant URLs up to your main urls.py will allow them to be accessed via reverse without a namespace argument, making the built-in views happy.
Solution 2:
I realize what the issue is.
For the built-in reset view there is a post_reset_redirect variable that uses the default implementation reverse(password_reset_done) to go to the password_reset_done view.
The issue is that in my main urls.py document I created the namespace variable
namespace = exist
However I did not override the default post_reset_redirect implementation
from reverse(password_reset_done) to reverse(exist:password_reset_done).
So my current
url(r'^reset-password/$', password_reset, name = 'reset_password'),
should now look like
url(r'^reset-password/$', { 'post_reset_redirect': 'exist:password_reset_done'}, password_reset, name = 'reset_password')
Solution 3:
As I see, you didn't include relative.url in your main urls.
EDIT
in relative urls
app_name='exists'#with this name you can call in main urls
urlpatterns = [
url(r'^$', views.vedic_view, name = 'vedic_home_view'),
#...In main url:
urlpatterns = [
url(r'^exists/', include('exists.urls')),
#...EDIT 2
Here'sthe docs on the subject, it explains it better than me with examples.
Post a Comment for "Password_reset_done Error When Attempting To Create Reset Password Authentication"