def load_design_docs():
    """
    Load design docs for registered views
    """
    url = ':'.join([options.url_registry_db, str(options.db_port)])
    client = partial(couch.BlockingCouch, couch_url=url)

    for name, docs in _views.items():
        db = client(db_name=name)
        views = []

        for doc in docs:
            try:
                current_doc = db.get_doc(doc['_id'])

                # use the current _rev if not provided
                if '_rev' not in doc:
                    doc['_rev'] = current_doc['_rev']
            except couch.NotFound:
                pass

            views.append(doc)

        db.save_docs(views)
Load design docs for registered views