On Mar 19, 4:11 am, "mediumgrade" <[EMAIL PROTECTED]> wrote:
> The problem is that once they are at the "/home" URL, the template
> does not show that the user is logged in. The "if is_logged_in" test
> fails.
>
> What could I be doing wrong?

1. where is your view code?
2. where does the 'is_logged_in' variable come from? That is not
standard django.
3. {% if user.is_authenticated %} is standard.
4. Are you using RequestContext or Context in your view? (you need
RequestContext to get the user object)

See 
http://www.djangoproject.com/documentation/authentication/#authentication-data-in-templates
for more details.

    -Doug


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to