Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (10 sloc) 0.378 kb
import couchquery
import couchdbviews
import os
this_directory = os.path.abspath(os.path.dirname(__file__))
design_dir = os.path.join(this_directory, 'design')
def sync(db):
for d in os.listdir(design_dir):
db.sync_design_doc(d, os.path.join(design_dir, d), language="python")
if __name__ == "__main__":
sync(couchquery.Database('http://localhost:5984/blog'))
Jump to Line
Something went wrong with that request. Please try again.