couchDB , python and authentication

前端 未结 6 1753
一整个雨季
一整个雨季 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:14

    Just pass it as part of the URI...python-couchdb will parse the user/pass out and use them:

    http://user:pass@localhost:5984

提交回复
热议问题