Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1d872f05e1
Fetching contributors…

Cannot retrieve contributors at this time

executable file 25 lines (19 sloc) 0.615 kb
#!/usr/bin/env python
import code, re
try:
import here
except ImportError:
import sys
import os.path as op
sys.path.insert(0, op.abspath(op.join(op.dirname(__file__), '..')))
import here
if __name__ == '__main__':
from models import User, Tweeter, connection
from pymongo.objectid import InvalidId, ObjectId
import settings
db = connection[settings.DATABASE_NAME]
print "AVAILABLE:"
print '\n'.join(['\t%s'%x for x in locals().keys()
if re.findall('[A-Z]\w+|db|con', x)])
print "Database available as 'db'"
code.interact(local=locals())
Jump to Line
Something went wrong with that request. Please try again.