i use the branch 'multiple-db-support'  of django, django will close
the database connection after a request finished, and
i read the source code django/db/__init__.py, i think the behavior
cause by the code 'dispatcher.connect(self.close,
signal=signals.request_finished)'  in class ConnectionInfo, but very
strange, i modify the source code like that:

class ConnectionInfo(object):
    ....
    def close(self):
        """Close connection"""
        assert False
        self.connection.close()


after a request finished, close() never invoke, but the database
connection was closed. can anyone tell me what part of the django code
close the database connection? 

thanks!


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to