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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_couchdb_storage-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 501225c7b12721c8b95012b8abda5ba06d4d737d78ec86a5bbfd09e9876105d9 |
|
MD5 | 17108550878c95393b3e524279971d02 |
|
BLAKE2b-256 | 381eb21e327d80a3a8dd67d115144a8b5bfc37d3e4b0b79012a35710bdfb6101 |
Close
Hashes for django_couchdb_storage-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1a0f402404b2f15e66566adde9bfbed2020158c24e7b7e4ef1049a5308024f2 |
|
MD5 | 08e0b54ce0b25637b72a65149e9926ef |
|
BLAKE2b-256 | bb2e882a9ecde5f320ab982ae273cbac4f0e2ab367acc10be7171ba0838d32ab |