lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

How do I link the python view server to couchdb? #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. try to run couchdb w/ python cod
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
0.8-incubading

Please provide any additional information below.

I know I need to edit; /usr/local/etc/couchdb/couch.ini
and add a line to the [Couch Query Servers] section
But I'm unsure what that should be;

python=python -e couchdb "couchdb.run()"

Doesn't seem to work, but it may be because I'm not sure about the python
view syntax itself...

Original issue reported on code.google.com by wjh...@gmail.com on 9 Jul 2008 at 8:36

GoogleCodeExporter commented 8 years ago
Looks like I'd left out part of the module;

echo '["reset"]' | python -m couchdb.view "couchdb.run()"

Gets me closer!
Still not sure if this will work from the .ini

Original comment by wjh...@gmail.com on 9 Jul 2008 at 8:37

GoogleCodeExporter commented 8 years ago
python=python -m couchdb.view

The above works for me.

Original comment by randall....@gmail.com on 15 Jul 2008 at 3:49