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 wrote:
> If There is no user
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 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?
3 matches
Mail list logo