In one of my django apps, I need to access another database that is unrelated to django's db. We are using psycopg to access this. There is some code running some calculations inside the db as a shared object, and it is tied to a connection, so we need to keep it open and not make a new connection each time the web page is accessed. Therefore, we need a place to store a psycopg connection object persistently. I know there are sessions, but I think that would still mean the destructor gets called and the connection gets closed when the handler returns.
Is there any place we can create an object that never gets destroyed and stays in memory as long as the django server is up and running (or apache/mod_python, whatever). Is this possible? --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---