I\'m doing a simple insert into Mongo...
db.notes.insert({ title: \"title\", details: \"note details\"})
After the note document is inserte
updated; removed previous because it wasn't correct
It looks like you can also do it with db.notes.save(...), which returns the _id after it performs the insert.
db.notes.save(...)
See for more info: http://api.mongodb.org/python/current/api/pymongo/collection.html