Django1.9 Mongodb support

49 views
Skip to first unread message

Sudhir kumar Giri

unread,
Nov 4, 2016, 5:13:18 PM11/4/16
to Django users
Hello,
 I didn't find any documentation or tutorial for Django-1.9 with Mongodb.
Please suggest some docs about it.
Thanks

Michal Petrucha

unread,
Nov 4, 2016, 5:25:58 PM11/4/16
to Django users
Hi,

Django does not have any specific support for mongodb. Of course, you
can just use Django without its ORM, and simply use some other Python
library to access mongo.

There used to be a few projects trying to bring support for
nonrelational database (with most focus on mongo) to Django's ORM, but
the entire point of an ORM is sort of to serve as a layer on top of
relational data stores, and the last time I checked, neither of those
projects was maintained anymore.

May I ask if you have any specific reason to want to use mongo with
Django? If not, you're most likely better off using Postgres instead,
which has excellent support in Django.

Cheers,

Michal
signature.asc

mpita1984

unread,
Nov 5, 2016, 5:09:09 AM11/5/16
to Django users
mongoengine test is to handle mongodb with python. although not native to the Django ORM, you can use it without any problem.

GMail

unread,
Nov 7, 2016, 7:33:15 AM11/7/16
to django...@googlegroups.com
Hi, "without any problem" is a bit strong since you can't just plug mongoengine into Django. You would have to take care of all models and interaction with them. However if Mongo is absolutely required for your project it can be done.

--
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 post to this group, send email to django...@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/debadd0d-1426-48cf-a69c-de7708adce23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages