couchDB , python and authentication

前端 未结 6 1678
一整个雨季
一整个雨季 2021-02-04 11:44

I have installed couchDB v 0.10.0, and am attempting to talk to it via python from Couch class downloaded from couchDB wiki. Problem is:

Create database \'mydb\'         


        
6条回答
  •  北荒
    北荒 (楼主)
    2021-02-04 12:34

    You can also do:

    db = couchdb.Database("http://your.url/yourdb")
    db.resource.http.add_credentials(username, password)
    

    after which all your requests should work.

提交回复
热议问题