Closed lucasvazq closed 2 years ago
The solution has arrived! :rocket:
I was able to solve the problem by replacing MONGO_URI
with the following config:
app.config["MONGODB_SETTINGS"] = {"host": "mongodb://my_user:my_pass@mongo:27017/my_mongo_db?authSource=admin", "connect": False}
Hello everyone :wave:, I need some help setting up my app.
I'm having trouble connecting to Mongo through the
MONGO_URI
config and I don't know why. The problem doesn't occur withflask_pymongo
, but it does occur with this package.This is what I'm doing:
Here I leave a fully reproducible example with a minimal and easy setup: