Non relational databases (MongoDB) with Django

122 views
Skip to first unread message

Deep Shah

unread,
Aug 17, 2016, 4:28:31 AM8/17/16
to Django users
I want to use MongoDB with Django. Which are the advisable, latest and stable engines?
I found https://github.com/django-nonrel/mongodb-engine which requires the non relational version of Django (https://github.com/django-nonrel/django/). But they have not updated the code since Django 1.6.

Jani Tiainen

unread,
Aug 17, 2016, 7:55:01 AM8/17/16
to django...@googlegroups.com

Hi,

Well you can use non relational databases with django. This of course means that you don't have ORM for that, use them as is. Way simpler than trying to force ORM (which stands for object relational mapper) to follow something non relational.

Also, if you're not stuck at mongodb, you may find arangodb much more appealing and doing most things "right".



On 17.08.2016 11:28, Deep Shah wrote:
I want to use MongoDB with Django. Which are the advisable, latest and stable engines?
I found https://github.com/django-nonrel/mongodb-engine which requires the non relational version of Django (https://github.com/django-nonrel/django/). But they have not updated the code since Django 1.6.
--
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/f2a605c0-bcd9-45e9-8927-f9c8f09bc95b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
Jani Tiainen

Deep Shah

unread,
Aug 17, 2016, 8:32:28 AM8/17/16
to Django users
How easy is it to use MongoDb without a Django ORM once the code base increases?

Avraham Serour

unread,
Aug 17, 2016, 10:03:13 AM8/17/16
to django-users
Why do you need to use mongodb? Why not just use postgres and all the tooling the django ORM provides?


To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Jani Tiainen

unread,
Aug 18, 2016, 1:54:19 AM8/18/16
to django...@googlegroups.com

Hi,

Django ORM is designed for relational data, for database engines like Postgres, MySQL, Oracle etc. MongoDB is document oriented database. In theory partial support for relational data could be implemented to be able to use mongodb but it would be relative way. Which leads to question that other response asked, if you want ORM and relational data, why not to use real relational database which works perfectly with Django ORM from the beginning?


For more options, visit https://groups.google.com/d/optout.

-- 
Jani Tiainen

SiamDjango

unread,
Nov 9, 2016, 8:05:09 PM11/9/16
to Django users

I was wondering if you end up using MongoDB with Django, did you use non relational version of Django? how was your experience?

Nes Dis

unread,
Sep 12, 2017, 7:10:12 AM9/12/17
to Django users
Hello

If you are looking for a way to connect MongoDB to Django, You should take a look at djongo a driver for allowing Django to use MongoDB as the database backend. You dont need a non-rel version of Django to go with it either!!!
Reply all
Reply to author
Forward
0 new messages