I don't know how to replicate it right now (I tried logging out and
deleting cookies, no dice) but it did happen to me once or twice while
I was developing something.  If you only find this problem when you
aren't logged in then treating 'not user' as equivalent to
'user.is_anonymous' should be ok.

{% if user and not user.is_anonymous %}
    <p>Welcome, {{ user.username }}. Thanks for logging in.</p>
{% else %}
    <p>Welcome, new user. Please log in.</p>
{% endif %}

This is only a work-around: if you can replicate it then I'd say it's
ticket-worthy.

-- Joshua


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to