MongoDB Connect with Django

35 views
Skip to first unread message

Abhishek Sharma

unread,
Sep 27, 2019, 7:55:00 AM9/27/19
to Django users
Hi,

Pls help out me on database connect established between django and mongodb.

i'm trying to connect from localhost to establish.

Thanks,





The information in this e-mail and any attachments is confidential and may be legally privileged. It is intended solely for the addressee or addressee's. If you are not an intended recipient, please delete the message and any attachments and notify the sender of nondelivery. Any use or disclosure of the contents of either is unauthorised and may be unlawful. All liability for viruses is excluded to the fullest extent permitted by law. Any views expressed in this message are those of the individual sender, except where the sender states them, with requisite authority, to be those of the organisation.

Kasper Laudrup

unread,
Sep 27, 2019, 8:08:09 AM9/27/19
to django...@googlegroups.com
Hi,

On 27/09/2019 13.40, 'Abhishek Sharma' via Django users wrote:
>
> Pls help out me on database connect established between django and mongodb.
>
> i'm trying to connect from localhost to establish.
>

Have you had a look at this?:

https://django-mongodb-engine.readthedocs.io/en/latest/index.html

That was just the first thing I found doing a simple search...

Kind regards,

Kasper Laudrup

Abhishek Sharma

unread,
Sep 27, 2019, 8:56:38 AM9/27/19
to Django users
Thanku! Kasper but i didn't find a solution

Kasper Laudrup

unread,
Sep 27, 2019, 9:13:23 AM9/27/19
to django...@googlegroups.com


On 27/09/2019 14.47, 'Abhishek Sharma' via Django users wrote:
> Thanku! Kasper but i didn't find a solution
>

Then it would probably be easier for people to help you with a solution
if you started by clarifying what your problem is...

Kind regards,

Kasper Laudrup

DANIEL URBANO DE LA RUA

unread,
Sep 27, 2019, 9:16:35 AM9/27/19
to Django users
https://django-mongodb-engine.readthedocs.io/en/latest/ it is ease to do is like another connection with another data base

DANIEL URBANO DE LA RUA

unread,
Sep 27, 2019, 9:25:11 AM9/27/19
to Django users


El viernes, 27 de septiembre de 2019, 13:55:00 (UTC+2), Abhishek Sharma escribió:
Screenshot from 2019-09-27 15-24-20.png

DANIEL URBANO DE LA RUA

unread,
Sep 27, 2019, 9:27:44 AM9/27/19
to Django users
here you have a screen capture for you too see how it works. and you have the documentations


El viernes, 27 de septiembre de 2019, 13:55:00 (UTC+2), Abhishek Sharma escribió:
Screenshot from 2019-09-27 15-24-20.png

Abhishek Sharma

unread,
Sep 27, 2019, 10:35:14 AM9/27/19
to django...@googlegroups.com
Hi Guy,

My question is, I'm trying to connect mongodb from localhost using dango freamwork.

Realy greatfull if any budy help on it.

Regards,
Abhishek


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7166e14c-f156-f5ee-17a3-5e978293b52c%40stacktrace.dk.

Kasper Laudrup

unread,
Sep 27, 2019, 11:49:05 AM9/27/19
to django...@googlegroups.com
Hi buddy,

That's not a question.

What have you tried so far?

Did you follow the instructions that someone was kind enough to send you a screenshot of?

Which errors did you get, where's your code?

Your not going to get any help until you figure out how to ask a question that someone can actually answer.

Kind regards,

Kasper

Abhishek Sharma

unread,
Sep 28, 2019, 10:00:07 AM9/28/19
to django...@googlegroups.com
Error during connecting Django with MongoDB, Please help on it.

django.core.exceptions.ImproperlyConfigured: 'django_mongodb_engine' isn't an available database backend.
Try using 'django.db.backends.XXX', where XXX is one of:
    'mysql', 'oracle', 'postgresql', 'sqlite3'



Regards,
Abhishek


Jani Tiainen

unread,
Sep 29, 2019, 5:09:16 AM9/29/19
to django...@googlegroups.com
Hi.

Personally I even would try to use any special backend that tries to map non-relational database with tool (ORM) that is meant for relational database.

You can connect to mongodb just fine with plain python connector and read data from there. You don't need anything magical for it.

Of course you are not able to use some things mainly ones that do relate ORM. But that sacrifice you did already.


Reply all
Reply to author
Forward
0 new messages