Question

How to setup the client connection from app to mongodb using python

Posted October 23, 2021 114 views
PythonDigitalOcean App PlatformDigitalOcean Managed MongoDB Database

I was trying to find an example how to setup a client connection using python between an app and mongodb, but wasn’t very successful with it. Is it possible to provide an example code for that?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi @jyrive,

You can feel free to check the below articles which can guide you with establishing a connection to MongoDB using the python App.

https://www.mongodb.com/languages/python
https://www.mongodb.com/blog/post/getting-started-with-python-and-mongodb
https://realpython.com/introduction-to-mongodb-and-python/

I hope this helps!

Regards,
Rajkishore