I\'m using pymongo to seed a database with old information from a different system, and I have a lot of queries like this:
pymongo
studentId = studentsR
in .py files:
from bson.objectid import ObjectId ...... kvdict['_id'] = str(ObjectId()) ...... mongoCollection.insert(kvdict)
it's ok!