0

Can anyone explain me the difference between mongoengine and django-mongo-engine and pymongo.

I am trying to connect to mongodb Database in Django2.0 and python3.6

2 Answers2

1

If you want multiple DBs (in Mongo itself) and need to switch DB for long time, then don't go for mongoengine.

For simple interaction mongoengine is a nice option.

0

Looks like django-mongoengine is basically a fork of mongoengine. However, django-mongoengine is not yet ready for production use; the README of the repo states, "THIS IS UNSTABLE PROJECT, IF YOU WANT TO USE IT - FIX WHAT YOU NEED."

pymongo is a full-featured, but low-level, MongoDB library. Unlike mongoengine, it does not provide ORM.

That being said, mongoengine is your best bet, since it has a clean ORM which is similar to using models in Django, it's under active development, and it's used in production.

chb
  • 1,727
  • 7
  • 25
  • 47