【发布时间】:2019-05-08 10:25:04
【问题描述】:
在文档https://python-cloudant.readthedocs.io/en/latest/database.html 中显示如何创建文档和数据库,但没有显示如何创建视图
有人可以帮助我吗? 我正在将 cloudant 与 python(Flask) 一起使用...
class TestContext(unittest.TestCase):
def setUp(self):
self.client_couchdb = CouchDB(
user='admin',
auth_token='token123',
url='https://couchbk.123',
connect=True
)
self.doc_test = {
'_id': 'julia102',
'name': 'Julia',
'age': 30,
'type': 'event'
}
self.db = self.client_couchdb.create_database('test')
self.db.create_document(self.doc_test)
【问题讨论】:
标签: python flask couchdb python-cloudant