Sunday, November 28, 2010

If logged in show X, if not Y

I managed to make register and login on my site. Now I want to divide
my template to parts for loggen and not logged user.
What is the best way to check and display template parts for this? For
example if user is not logged in: show login form but if he is logged
in - in the same place show him his avatar.

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

No comments:

Post a Comment