Re: Reverse Lookup Failure on password change/reset views
On Wednesday, 24 July 2013 00:26:44 UTC-7, Peter wrote:
> Sorry, that should be: django.contrib.auth.views.password_reset
In fact, I'm pretty sure it's this line of code in auth::
File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/views.py" in password_reset
147. post_reset_redirect = reverse('django.contrib.auth.views.password_reset_done')
The question is: if I actually have a url dispatcher entry that references this view function, then why can't 'reverse' find it?
Probably because you've included it under a namespace, so Django would need to look for it as "registration:whatever". There's no need to use the namespace in the include call.
--
DR.
-- 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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home