Question

Not able to access the mongodb using pymongo from my nginx flask app

Posted March 24, 2018 2.5k views
MongoDBUbuntuApachePythonPython FrameworksUbuntu 16.04

I am trying to host a simple web application built using flask web framework.
I am not able to access the mongodb from within the application using the pymongo module. But this pymongo module works perfectly when I use it in a python terminal. I get a Internal Server error when I try to do it in the app but it works fine on a terminal. Is there anything I need to do to access the mongodb from my flask app? Thank You.

1 comment
Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!