I am not sure what the difference is between RequestContext and Context (I am still fairly new to Django and Python).
Here is my view code: def home(request): if not request.user.is_authenticated(): return render_to_response('login_error.html') else: return render_to_response('index.html') This is just a basic place holder for now as I am developing the application. Is there something wrong with this method? On Mar 19, 5:29 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > 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) > > Seehttp://www.djangoproject.com/documentation/authentication/#authentica... > 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 -~----------~----~----~----~------~----~------~--~---