(postfix=None)
return Database(db_url, create=True)
Get the couch database.
Get the couch database.
Get the couch database .
def get_db(postfix=None):
    """
    Get the couch database.
    """
    # this is a bit of a hack, since it assumes all the models talk to the same
    # db.  that said a lot of our code relies on that assumption.
    # this import is here because of annoying dependencies
    db_url = settings.COUCH_DATABASE
    if postfix:
        db_url = settings.EXTRA_COUCHDB_DATABASES[postfix]
    return Database(db_url, create=True)
def get_db ( postfix = None ) : # this is a bit of a hack, since it assumes all the models talk to the same # db.  that said a lot of our code relies on that assumption. # this import is here because of annoying dependencies db_url = settings . COUCH_DATABASE if postfix : db_url = settings . EXTRA_COUCHDB_DATABASES [ postfix ] return Database ( db_url , create = True )