Skip to content

Instantly share code, notes, and snippets.

@xhinking
Created August 8, 2013 08:18
Show Gist options
  • Save xhinking/6182662 to your computer and use it in GitHub Desktop.
Save xhinking/6182662 to your computer and use it in GitHub Desktop.
python mongodb template.
import pymongo
# Connect MongoDB
conn = pymongo.Connection('localhost', 27017)
mongodb = conn.dbname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment