Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flask-Pymongo not connecting to online mongodb #160

Open
King-Del-ErnestO opened this issue Aug 26, 2022 · 1 comment
Open

Flask-Pymongo not connecting to online mongodb #160

King-Del-ErnestO opened this issue Aug 26, 2022 · 1 comment

Comments

@King-Del-ErnestO
Copy link

It keeps returning none when uri is passed, and when mongo.cx is passed, mongo.save_file not working.

What's wrong what's happening?
Please can you help!

@JEdmario16
Copy link

JEdmario16 commented Nov 8, 2022

Try to use mongo.cx.db instead mongo.db. It worked for me.

[edit]
Looking at the documentation, I realized that "mongo.db" only exists if a db is passed in the url. If you use the connection snippet that atlas provides, "mongo.db" will always be None unless a db is passed.

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

No branches or pull requests

2 participants