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.
Metadata
Release files for django-couchdb-storage 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_couchdb_storage-0.0.2.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_couchdb_storage-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / django_couchdb_storage-0.0.2.tar.gz
| Download URL | django_couchdb_storage-0.0.2.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
501225c7b12721c8b95012b8abda5ba06d4d737d78ec86a5bbfd09e9876105d9
|
|
BLAKE2b-256 checksum How to use checksums |
381eb21e327d80a3a8dd67d115144a8b5bfc37d3e4b0b79012a35710bdfb6101
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|
Release files / django_couchdb_storage-0.0.2-py3-none-any.whl
| Download URL | django_couchdb_storage-0.0.2-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1a0f402404b2f15e66566adde9bfbed2020158c24e7b7e4ef1049a5308024f2
|
|
BLAKE2b-256 checksum How to use checksums |
bb2e882a9ecde5f320ab982ae273cbac4f0e2ab367acc10be7171ba0838d32ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
|