def compact(self, ddoc=None):
        if ddoc:
            resource = self.resource('_compact', ddoc)
        else:
            resource = self.resource('_compact')
        _, _, data = resource.post_json(
            headers={'Content-Type': 'application/json'})
        return data['ok']
Raise ``DisableView`` if the configuration necessary for this
dataset/ETHPy150Open djc/couchdb-python/couchdb/client.py/Database.compact--crossover with--dataset/ETHPy150Open carljm/django-adminfiles/adminfiles/views.py/BaseView.check