Open xuxoramos opened 2 years ago
Hi,
Got exactly the same error...
Some help please ?
Work for me when you put the config like this :
'mongodb': {
'ENGINE': 'djongo',
'ENFORCE_SCHEMA': False,
'NAME': env('MONGO_DB_DATABASE'),
'CLIENT': {
'host': 'mongodb://{0}:{1}@{2}'.format(
env('MONGO_DB_USERNAME'), env('MONGO_DB_PASSWORD'), env('MONGO_DB_HOST')
),
},
}
Running MongoDB on a remote AWS EC2 machine.
Running the
makemigrations
goal throws the following error:However, right at the top, the trace says:
Tried solutions in #528 , but I guess they work when databases are local.
String connection is
mongodb://<user>:<pass>@<aws_ec_2_hostname>:27017/denunciapaot?authSource=denunciapaot
Database
denunciapaot
does have this user, and the user has the proper permissions.Snippet of my
settings.py
file:Python version is
3.6.9
My requirements.txt:
Traceback