Skip to content
Advertisement

Tag: disconnect

MongoEngine: Close connection

I spent ages trying to find a simple example where MongoEngine was being used and a connection was being closed. Finally figured it out and posting my code. Answer I know this is an old question, but if anyone else is searching I figured I’d give an alternate answer. close() does not actually remove the connection from MongoEngine’s connection list.

Advertisement