Config Error with Mongodb-Atlas and flask-MongoAlchemy

I did put password of that user in the field and i have tried all possible combination with dbname.I dont know which dbname it is referring to. I have searched many places, didnt get any answers. Can some one please help me how to configure.

app.config[‘DEBUG’]=True
app.config[‘MONGOALCHEMY_CONNECTION_STRING’]=’mongodb+srv://user:
@test .usvae.mongodb.net/?retryWrites=true&w=majority’
db=MongoAlchemy(app)
This is my configeration. This is the error i am getting

raise ImproperlyConfiguredError(“You should provide a database name ” flask_mongoalchemy.ImproperlyConfiguredError: You should provide a database name (the MONGOALCHEMY_DATABASE setting)

Thanks in advance

原文链接:Config Error with Mongodb-Atlas and flask-MongoAlchemy

© 版权声明
THE END
喜欢就支持一下吧
点赞14 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容