Hi,

I am trying to connect my Django app to MongoDB atlas, using djongo
<https://nesdis.github.io/djongo/get-started/#>. Here is my status:

I have set up a cluster successfully in Atlas. I am then getting the
connection string details from the relevant console. With that knowledge, I
am amending my DATABASES dict in settings.py

Here is the connection string:

*mongodb+srv://<my_username>:<password>@<dbname>-<my-hostname>/test?retryWrites=true*

Here is my dict.

DATABASES = {
    'default': {
        'ENGINE': 'djongo',
        'USER': 'my_username',
        'PASSWORD': 'password',
        'NAME': 'test',
        'HOST': '<dbname>-<my-hostname>',
        'PORT': 27017

    }
}


Do you find anything smelly? Has anyone done a similar setup? I would
appreciate any documentation or hints on that matter

Thanks,
Periklis

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAE_d2bhVmLynzhNi71r1PrgFK8KpcmM7WX9oUPdD_EF6qQ-2Ow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to