Monday, March 28, 2016

Re: Getting NoReverseMatch at /logout/

Hello.
The exception raises because 'boardgames_home' name is defined for group of patterns, and not one.
So it was skiped and is undefined in runtime. 
Use 'name' parameter only for individual pattern, don't use it when include other patterns. 

Also don't use blank string in url pattern. Use '/' for home page instead of ''.

понедельник, 28 марта 2016 г., 12:49:20 UTC+3 пользователь Deepanshu Sagar написал:
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+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/7072fd3a-2858-4c38-84c7-e68d2b9aa990%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment