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 database connections, which is how sessions are stored, is not generally possible. What is the real problem you are trying to solve? Why doesn't Django's normal database connection handling work for you? Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---