Monday, March 28, 2016

Re: Getting NoReverseMatch at /logout/

Oh okay,

So, If I want to navigate to home page, which is at '/', how do it give the parameter for this along with next_page key-value pair?
url(r'^logout/$', auth_views.logout, {'next_page': 'boardgames_home'}, name='boardgames_logout'),

Thank you for the reply though.

Regards
Deepanshu


On Monday, March 28, 2016 at 4:39:34 PM UTC+5:30, monoBOT monoBOT wrote:
That url doesnt exist on your urls.py

looks like you are trying to navigate to "boardgames_home"
when trying to access the "/" url

name is for reverse lookups from inside the django app not for the urls.

2016-03-28 10:49 GMT+01:00 Deepanshu Sagar <deepa...@gmail.com>:
Hello,

I am getting below error while clicking on logout button on webpage:


boardgames/url.py contains:


main/urls.py and views.py are below.




please guys, any help is appreciated.

Regards
Deepanshu

--
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...@googlegroups.com.
To post to this group, send email to django...@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/8fbe6e38-84c9-4ccb-b0e1-b91eade1b036%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
monoBOT
Visite mi sitio(Visit my site): monobotsoft.es/blog/

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ccf6f3ee-34a0-476d-b44f-8d5d4c9ea55d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment