On Jan 6, 2009, at 6:41 AM, Aruna wrote:
> > I'm trying to redirect a user on their first log in, to a special > welcome page. Subsequent logins will go to a regular page. Is there a > way to do that in the templates? Does Django have a way to check if > it's a users first login? User instances have both a last_login and a date_joined attribute. Check how these defaults are filled for new users – if last_login equals date_joined, you can assume it's their first login. Check all the User attributes in the source code, and something will probably become evident. Eric > > > --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---