I'm using the template method for now since i dont know much about decorators. I tried using the decorators at contrib.auth.decorators but it didnt work.
Thanks! On Apr 19, 7:51 pm, Oleg Lomaka <[email protected]> wrote: > {% if user.is_authenticated %} > Hello, what are you doing here? > {% else %} > Show login/registration form here > {% endif %} > > Also I think doing it in templates is not right. It's job for decorators. > > On Tue, Apr 19, 2011 at 7:46 PM, Luterien <[email protected]> wrote: > > Hello. I'm working on a django project and now i'm writing > > register,login and logout pages. I dont want already logged in users > > to access register or login pages. Is it possible to do that on the > > template side or do i need to modify my login view ? -- 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.

