Thanks Kev, It was exactly what I needed.
Regards, On Thu, Aug 18, 2011 at 10:45 PM, Kev Dwyer <[email protected]> wrote: > Andre Lopes wrote: > >> Hi, >> >> I am new to Django... I have made a logout link, but now I am in doubt >> on which the best way to show/hide this template tag: >> >> [code] >> <a href="{% url auth_logout_next 'directorio' %}">Logout</a> >> [/code] >> >> Which is the best way of show/hide this link? >> >> Sorry if it is a basic question. >> >> >> Best Regards, >> > > I use > > {% if user.is_authenticated %} > > to condition my logout link's appearance. > > See https://docs.djangoproject.com/en/1.3/topics/auth/#authentication-data- > in-templates > > Cheers, > > Kev > > -- > 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. > > -- 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.

