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.
url(r'^logout/$', auth_views.logout, {'next_page': 'boardgames_home'}, name='boardgames_logout'),
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ccf6f3ee-34a0-476d-b44f-8d5d4c9ea55d%40googlegroups.com.
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 ''.
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.
--
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/CA%2Be%2BciWjnpmvKJ-rBRQekd-MGqhM4gJr1P%3DUeMcwBiGfRwkSng%40mail.gmail.com.
That's not entirely accurate. It is perfectly valid to assign a name to an included set of URL's. This creates a namespace for the URL's that are being included. See here:
On Monday, March 28, 2016 at 7:23:22 PM UTC+2, James Schneider wrote:That's not entirely accurate. It is perfectly valid to assign a name to an included set of URL's. This creates a namespace for the URL's that are being included. See here:Actually, the name parameter is completely ignored[1] when using include(). You can set a namespace by passing the namespace (and app_name) parameter to include()[2], or in 1.9+, by setting the app_name attribute in the target URLconf[3]. That means the name that should be used with the current code is just 'home'.