Skip to main content

Django storage backend for CouchDB

Project description

A couchdb storage backend for Django

For each upload, a new document with the file attached is created.

Setup

Install this package with pip:

pip install -U django-couchdb-storage

Add it to your INSTALLED_APPS in django settings:

INSTALLED_APPS = [
    ...

    'couch',
]

And and configuration to point django to your couchdb:

DEFAULT_FILE_STORAGE = 'couchdb_storage.CouchDBStorage'
COUCHDB_HOST = 'http://127.0.0.1:5984'
COUCHDB_DATABASE = 'django_storage'
COUCHDB_USER = ''
COUCHDB_PASSWORD = ''

Constraints

Right now, this package assumes that content from the storage database can be read anonymously. Writes are authenticated. It is also assumed, that the db host can be accessed publicly.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_couchdb_storage-0.0.2-py3-none-any.whl (3.6 kB) Copy SHA256 hash SHA256 Wheel py3 Oct 22, 2018
django_couchdb_storage-0.0.2.tar.gz (2.1 kB) Copy SHA256 hash SHA256 Source None Oct 22, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page