Re: Database connection object in session

2009-03-04 Thread jai
Thanks for your reply. I will go through this link. Looking forward for further solution. Thanks, Jayapal On Mar 5, 10:36 am, Malcolm Tredinnick wrote: > On Wed, 2009-03-04 at 21:26 -0800, jai wrote: > > Thanks for your reply. > > Actually I got to use 2databasein my project and I am not sure a

Re: Database connection object in session

2009-03-04 Thread Malcolm Tredinnick
On Wed, 2009-03-04 at 21:26 -0800, jai wrote: > Thanks for your reply. > Actually I got to use 2 database in my project and I am not sure about > Django Multiple DB support. So I thought of accessing secondary DB > connection through ordinary python sql connection and to add > connection object i

Re: Database connection object in session

2009-03-04 Thread jai
Thanks for your reply. Actually I got to use 2 database in my project and I am not sure about Django Multiple DB support. So I thought of accessing secondary DB connection through ordinary python sql connection and to add connection object in session, but it is not working. Always returns 'None'.

Re: Database connection object in session

2009-03-04 Thread Malcolm Tredinnick
On Wed, 2009-03-04 at 03:08 -0800, jai_python wrote: > Hi. Is it possible to add database connection object in session and > handle in different views. No. Really bad idea. The connection lifecycle is tied to a single request/response (we close it at the end of the response). Also pickling datab