https://github.com/raphaelm/django-cockatiel
Django storage backend for the cockatiel distributed file storage
https://github.com/raphaelm/django-cockatiel
Last synced: about 1 year ago
JSON representation
Django storage backend for the cockatiel distributed file storage
- Host: GitHub
- URL: https://github.com/raphaelm/django-cockatiel
- Owner: raphaelm
- License: apache-2.0
- Created: 2016-04-03T09:50:41.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-10T13:08:40.000Z (about 10 years ago)
- Last Synced: 2025-03-14T20:17:07.583Z (over 1 year ago)
- Language: Python
- Size: 13.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
django-cockatiel
================
[](https://travis-ci.org/raphaelm/django-cockatiel)
This is a django storage backend that makes use of the cockatiel distributed
file storage. Please read the [cockatiel documentation](https://cockatiel.readthedocs.org/)
if you are unsure about what this is.
Requirements
------------
* Django 1.8 or 1.9
* Python 3.4 or newer
Installation
------------
To install django-cockatiel, you can simply run:
pip install django-cockatiel
If you want to use it as your primary media file storage, you need to
add some configuration to your ``settings.py`` file. First of all, you
need to set it as your default storage:
DEFAULT_FILE_STORAGE = 'django_cockatiel.CockatielStorage'
Next, you need to configure django-cockatiel itself. Currently, the
following configuration options are available:
* ``PUBLIC_URL``: The public URL that the files can be reached at. This
could be the public address of one of your nodes or the address of a
lode balancer of some kind.
* ``STORAGE_NODES``: The list of storage nodes that should be used to
store files. This should be a list of URLs of cockatiel instances.
Example:
COCKATIEL_STORAGE_OPTIONS = {
'PUBLIC_URL': '/media/',
'STORAGE_NODES': [
'http://10.1.2.3:8012'
]
}