You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a known bug. The PR #731 almost fixed it, but was never finished. If you feel like helping on the topic, you may complete it, or create a new PR starting from scratch.
The above will connect to mydb with username None and password None. This is because though a username and password are set, if a uri is used mongoengine will blindly override them: https://github.com/MongoEngine/mongoengine/blob/master/mongoengine/connection.py#L57
Is there any reason not to do 'or username' and 'or password' similar to what's being done for database?
The text was updated successfully, but these errors were encountered: