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 redirect to your
start page and the 'next' variable will take care of redirecting to the
original  page, if any, so that situation you don't like would never arise.

That said, I don't know if it's possible to do what you asked without
writing your own view.

- Paulo

On Tue, Aug 4, 2009 at 7:41 PM, MiratCanBayrak <[email protected]>wrote:

>
> 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 already logged user is not giving
> professional sense i think. Can i change that behaviour or should i re-
> write login view myself?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to