Re: Login screen is always shown, i dont like it :/

2009-08-05 Thread Masklinn
On 4 Aug 2009, at 22:59 , Paulo Almeida wrote: > That said, I don't know if it's possible to do what you asked without > writing your own view. Why wouldn't it be? Just need to write a decorator or a template conditional checking for request.user.is_authenticated(), and take the appropriate ac

Re: Login screen is always shown, i dont like it :/

2009-08-04 Thread Paulo Almeida
Hi, If you redirect users to your login screen in views that require login (for instance, using the login_required decorator), you don't have to give out your /accounts/login URL to users. Of course they can still go there if they want, but there's no reason why they should. Your login can redirec

Login screen is always shown, i dont like it :/

2009-08-04 Thread MiratCanBayrak
hi, i am using django.contrib.auth.views.login view at /account/login url, to show login screen ( as explained here : http://docs.djangoproject.com/en/dev/topics/auth/#django.contrib.auth.views.login) But, when user already logged in, form is not showing any error. Displaying a login form to alr