I am building a website using Django and MongoDB. There are 2 popular API framework that we can use to connect Django
and MongoDB
, one is mongoengine
and the other is django-mongodb-engine
.
Because the latest mongoengine
is not supported Django anymore Document, and django-mongodb-engine
needs another django-nonrel
package which makes the development environment a little bit complicate.
I am wondering, if I could use Pymongo
to connect Django
and MongoDB
directly.
Is there anyone who have the same experience that could share? and how to set the db in setting.py
in Django to make the db public?