Re: Session lost between two requests from the test client

2008-06-14 Thread ksachdeva
I did not have settings like this but re-organizing my project, installing django again, deleting and creating the database made the issue disappear. This implies that it must be my fault. Thanks for all the help and time you guys spent on my problem. I am very sure that I am going to enjoy the

Re: Session lost between two requests from the test client

2008-06-13 Thread Norman Harman
ksachdeva wrote: > Hi, > > From a testcase I first issue a 'get' request to a view (say view1) > where I set a request.session['m_key'] = 'myval'. Now I issue a 'post' > request to a view (say view2). In view2, I tried to obtain > request.session['m_key'] but I get an error that session does not

Re: Session lost between two requests from the test client

2008-06-13 Thread ksachdeva
Unfortunately it didn't. I applied your patches and tried my unit test but with out success. Currently I am storing the sessions in the database, seeing your example I tried to configure (settings.py) to use files as session store but could not do so. Whatever I specify as SESSION_FILE_PATH I get

Re: Session lost between two requests from the test client

2008-06-12 Thread simonb
I pretty sure this is a subtle bug in the session code. I reported here http://code.djangoproject.com/ticket/6984 There is a patch in the report that you could try. Let me know if it fixes it. Regards Simon --~--~-~--~~~---~--~~ You received this message

Re: Session lost between two requests from the test client

2008-06-12 Thread ksachdeva
Thanks for the reply. I am currently trying it from the unittests (django test client), I am sure it would work if I use the web site. I also found a ticket that was opened 2 days ago : http://code.djangoproject.com/ticket/7416 which seems to be talking about similar problem. On Jun 13, 12:22 

Re: Session lost between two requests from the test client

2008-06-12 Thread Peter Rowell
> Would appreciate any help in this regards Try using Firefox and the Live HTTP Headers plugin. Start at the beginning and see what is being exchanged between browser and server. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Session lost between two requests from the test client

2008-06-12 Thread ksachdeva
Hi, >From a testcase I first issue a 'get' request to a view (say view1) where I set a request.session['m_key'] = 'myval'. Now I issue a 'post' request to a view (say view2). In view2, I tried to obtain request.session['m_key'] but I get an error that session does not have 'm_key' key. Both