When trying to insert a document { u'id' : 1, u'name' : u'Sam' }, db.save(dict) fails with the following exception trace. Is there are work around this issue?
File "build\bdist.win32\egg\couchdb\client.py", line 404, in save
func = self.resource(doc['
id']).put_json
File "build\bdist.win32\egg\couchdb\http.py", line 365, in call
can you select a document with some query language
db = couch["foo"]
to select a database.
Can you write more documentation?
Why do I get a connection refused error when I try to do line 3?
@eric Make sure your server is running.
Is there some API documentation somewhere ?
There is a good example here
http://davidwatson.org/2008/02/python-couchdb-rocks.html
The documentation comes with the py-module.
When trying to insert a document { u'id' : 1, u'name' : u'Sam' }, db.save(dict) fails with the following exception trace. Is there are work around this issue? id']).put_json File "build\bdist.win32\egg\couchdb\http.py", line 365, in call
File "build\bdist.win32\egg\couchdb\http.py", line 501, in urljoin File "build\bdist.win32\egg\couchdb\http.py", line 453, in quote File "C:\Tools\python\python27\lib\urllib.py", line 1229, in quote AttributeError?: 'int' object has no attribute 'rstrip'There really needs to be more of a tutorial/getting started,
let me point seeking souls to http://packages.python.org/CouchDB/getting-started.html
There seems to be no way to authenticate the admin user want to create database