Metadata-Version: 2.1
Name: django-couchdb-storage
Version: 0.0.2
Summary: Django storage backend for CouchDB
Home-page: https://github.com/5in4/django-couchdb-storage
Author: Dominik Seemann
Author-email: dominik@seemann.rocks
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: requests (>=2.0)

# 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:

```python
INSTALLED_APPS = [
    ...

    'couch',
]
```

And and configuration to point django to your couchdb:

```python
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.


