Project Setup with Django 1.10, mongodb and Python 3.4.3

前端 未结 2 907
栀梦
栀梦 2021-01-15 05:42

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 v

相关标签:
2条回答
  • 2021-01-15 06:22

    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.

    0 讨论(0)
  • 2021-01-15 06:41

    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.

    0 讨论(0)
提交回复
热议问题