django-queued-storage
This storage backend enables having a local and a remote storage backend. It will save any file locally and queue a task to transfer it somewhere else using Celery.
If the file is accessed before it's transferred, the local copy is returned.
Installation
pip install django-queued-storage
Configuration
- Follow the configuration instructions for django-celery
- Set up a caching backend
- Add
'queued_storage'
to yourINSTALLED_APPS
setting