Skip to content Skip to sidebar Skip to footer

Project Setup With Django 1.10, Mongodb And Python 3.4.3

Initially I have built projects with Django 1.5, django-mongoengine, python 2.7.8. I have started a project with an idea came up to my mind. I want to make it using latest versions

Solution 1:

You can't use the normal Django with django-mongodb-engine.

django-mongodb-engine requires the Django-nonrel package to be installed, instead of the normal Django, which is several minor versions behind the current release of the official Django (1.10).

If you want to use the official django with MongoDB and be provided with an ORM like layer, your best bet is probably Mongoengine which works with the official version of Django.

Solution 2:

Expanding on the above answer. You can actually use Django with MongoDB directly.

It is possible to use django AS IS with MongoDB as your backend djongo

It is a compiler that converts SQL queries into mongodb syntax. Using this all Django features work as is.

Disclosure: I have contributed to this project and all Django contrib models work fine with this as the backend connector.

Post a Comment for "Project Setup With Django 1.10, Mongodb And Python 3.4.3"