Project Setup with Django 1.10, mongodb and Python 3.4.3

前端 未结 2 906
栀梦
栀梦 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: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.

提交回复
热议问题