skip to Main Content

Mongodb – Getting ReplicaSetNoPrimary error for M0 cluster when using Django with MongoEngine

I am using django with mongoengine. I am writing the following in the settings.py file: from mongoengine import connect URI = 'mongodb+srv://myusername:[email protected]/django?retryWrites=true&w=majority&ssl=false' connect(host=URI) After that, I have a model as follows: from mongoengine import Document, StringField class User(Document): first_name =…

VIEW QUESTION
Back To Top
Search