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?
but the way, i use the branch 'multiple-db-support'
thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---