>
>
> 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
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
It's a namespace collision
Kindly take a look over it "home" and boardgames_homes tearing a part.
simply remove the namespace that is occurring at the include section.
On Mon, Mar 28, 2016 at 11:46 PM, James Schneider
wrote:
>
>
> On Mon, Mar 28, 2016 at 2:49 AM, Deepanshu Sagar
> wrote:
>
>>
On Mon, Mar 28, 2016 at 2:49 AM, Deepanshu Sagar
wrote:
> Hello,
>
> I am getting below error while clicking on logout button on webpage:
>
>
>
Hmm, you cut off the interesting stuff underneath this section. The
traceback information below is usually super helpful.
> boardgames/url.py contain
On Mon, Mar 28, 2016 at 6:26 AM, Vadim Serdiuk wrote:
> 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 oth
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 '/
Your problem might be mixing include and name in the urls.py file.
reverse("home") should give you better result.
2016-03-28 13:31 GMT+02:00 Deepanshu Sagar :
> 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-v
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
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 :
> Hello,
>
> I am getting below error while cl
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
10 matches
Mail list logo