Closed nagracks closed 6 years ago
What do you mean by not working? Is there an exception being thrown?
Yes it throws this exception
django.urls.exceptions.NoReverseMatch: Reverse for 'auth_password_reset_done' not found. 'auth_password_reset_done' is not a valid view function or pattern name.
@nagracks my guess would be that it's because the auth_urls
are not included with the namespace: https://github.com/macropin/django-registration/blob/master/registration/backends/default/urls.py#L61 can you confirm this is the issue?
I couldn't reproduce this crash.
I'm having the same issue. I've updated my project to Django 1.10.5, and now, /accounts/login does not work and throw this error: Any idea?
NoReverseMatch: Reverse for 'django.contrib.auth.views.login' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []
If you upgraded from 1.9 or earlier it might be related to this item in the 1.10 release notes: "The ability to reverse() URLs using a dotted Python path is removed." Does your URL pattern you are trying to reverse have a name?
They are like this:
from django.contrib.auth.views import login, logout
url(r'^accounts/', include('registration.backends.default.urls')),
url(r'^login/$', login, name='account_login'),
url(r'^logout/$', logout, name='account_logout'),
The accounts/login doesn't work. Not even login and logout works :( But it used to work
It looks like you need to give login
a name of 'django.contrib.auth.views.login'
.
Forget it ... it worked ^^ Thanks!
One more thing that could be done when closing this is to add 1.11 to the "django-registration (redux) now with Django 1.8/1.9/1.10" tag at the top of https://github.com/macropin/django-registration.
@timgraham agreed, only @macropin can change that currently so I'll let him edit and close this issue out.
@macropin can you update the tagline to close this issue?
I'm not sure how to do this. Can you help me?
Em 13/09/2017 11:40, "Joshua Blum" notifications@github.com escreveu:
@macropin https://github.com/macropin can you update the tagline to close this issue?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/macropin/django-registration/issues/252#issuecomment-329189360, or mute the thread https://github.com/notifications/unsubscribe-auth/AACAx_cM_D9PcVhh_JVeg6iPoYpC-8CEks5sh-ljgaJpZM4M_XX_ .
@fchevitarese only @macropin can update the tagline as the repository owner. Thanks for reaching out though!
The tagline no longer includes the Django version so I think this can be closed.
If I include urls with namespace
And use it like this in template
then it is not working in latest Django.