Re: What I am missing is this Django "logout"?

2011-08-23 Thread Andre Lopes
Hi, thanks your your reply. And what should be the right way of doing this? Best Regards, On Sun, Aug 21, 2011 at 5:00 AM, Subhranath Chunder wrote: > No, it's working is not a mistake by itself. Because now, the regular > expression is extracting an absolute path, and

Re: What I am missing is this Django "logout"?

2011-08-21 Thread Subhranath Chunder
No, it's working is not a mistake by itself. Because now, the regular expression is extracting an absolute path, and not a relative url path. But, you are surely using things "the wrong way". :) On Sun, Aug 21, 2011 at 4:57 PM, Andre Lopes wrote: > Hi, > > Thanks for

Re: What I am missing is this Django "logout"?

2011-08-21 Thread Andre Lopes
Hi, Thanks for the reply. I have discovered that If I use this: [code] Welcome {{ request.user.username }}. Logout [/code] Instead of: [code] Welcome {{ request.user.username }}. Logout [/code] I got the code working as expected. The thing is that I got an URL like this:

Re: What I am missing is this Django "logout"?

2011-08-20 Thread Subhranath Chunder
> Welcome {{ request.user.username }}. Logout This part of your code is generating a logout URL like this in your template: "/logout/directorio" Now, your urls.py has the pattern: url(r'^logout/(?P.*)/$', 'django.contrib.auth.views.logout', name='auth_logout_next'), This makes, the variable

What I am missing is this Django "logout"?

2011-08-20 Thread Andre Lopes
I am new to Django, and I am trying to put the logout to work... I have installed the an App called, Django-Registration. My problem is that I can do the logout, but the page does not get refreshed, I must to press F5 after the logout to see the page for not logged users. What I have done is