Browse Source

Merge pull request #479 from dmishe/patch-1

Removed unneeded print statements form mongokit pattern doc
pull/530/head
Armin Ronacher 13 years ago
parent
commit
9be47f5932
  1. 3
      docs/patterns/mongokit.rst

3
docs/patterns/mongokit.rst

@ -122,9 +122,6 @@ collection first, this is somewhat the same as a table in the SQL world.
>>> user = {'name': u'admin', 'email': u'admin@localhost'} >>> user = {'name': u'admin', 'email': u'admin@localhost'}
>>> collection.insert(user) >>> collection.insert(user)
print list(collection.find())
print collection.find_one({'name': u'admin'})
MongoKit will automatically commit for us. MongoKit will automatically commit for us.
To query your database, you use the collection directly: To query your database, you use the collection directly:

Loading…
Cancel
Save