Skip to content

Adding 'connect': False as default to connections#1607

Open
berlotto wants to merge 1 commit intoMongoEngine:masterfrom
berlotto:master
Open

Adding 'connect': False as default to connections#1607
berlotto wants to merge 1 commit intoMongoEngine:masterfrom
berlotto:master

Conversation

@berlotto
Copy link
Copy Markdown

Add 'connect': False as default to facilitate the use through servers like Gunicorn.

@erdenezul
Copy link
Copy Markdown
Collaborator

@UFO911 same PR that solves your problem?

@bagerard
Copy link
Copy Markdown
Collaborator

bagerard commented May 3, 2019

@erdenezul This is quite old, what do you want to do with this? Personally I believe that since connect=True is the default in pymongo3, we should keep the same default.

The workaround for Gunicorn is simply to provide connect=False when calling mongoengine.connect(), I'd be in favor of documenting the connect parameter more explicitly in mongoengine.connect function, what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants