¡Esta es una revisión vieja del documento!
$ pip install mongoengine
To start using MongoEngine we will import like this:
import mongoengine
To connect a DB we will use the connect function, its first argument is the DB:
connect('project1') connect('project1', host='192.168.1.35', port=12345) connect('project1', username='webapp', password='pwd123') connect('project1', host='mongodb://localhost/database_name')