Few things, can you retrieve all the user data in your pages ? If not you
should look to  httpRequestContext
https://docs.djangoproject.com/en/1.3/topics/http/shortcuts/ and use
render_to_response


On Thu, Jul 21, 2011 at 9:15 AM, vikalp sahni <vikalpsa...@gmail.com> wrote:

> If There is no user request.user holds. AnonymousUser Object.
>
> if you user request.user.is_authenticated() it should give False in case
> user if not logged_in, and you can load your page accordingly.
>
> Regards,
> //Vikalp
>
>
> On Thu, Jul 21, 2011 at 11:52 AM, bahare hoseini <bhhose...@gmail.com>wrote:
>
>> hi there,
>> i've installed *AuthenticationMiddleWare *& *SessionMidleWare *in
>> MIDDLEWARE_CLASSES in setting.py,
>> but wherever i use (request.user) my web page such as log_in page,is
>> loaded as if it doesn't know request.user => there is no limit to access
>> pages!!
>>
>> could you please tell me why?
>>
>> thanks,<https://docs.djangoproject.com/en/1.3/ref/middleware/#django.contrib.auth.middleware.AuthenticationMiddleware>
>>
>> --
>> 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.
>>
>
>  --
> 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.
>

-- 
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.

Reply via email to