forked from malcolmt/django-queued-storage
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
django-queued-storage | ||
================= | ||
|
||
This is a storage backend that allows you specify a local and a remote storage backend. | ||
It will upload locally and then queue up the transfer to your remote backend. If any | ||
request for the file occur before the file gets to the remote backend your local backend | ||
will be used. Once the file has been successfully transferred to the remote backend all | ||
request for the file will use the remote backend. | ||
|
||
This backend requires celery, which is used for the queuing. | ||
|
||
Usage | ||
---------------------------- | ||
|
||
1. Make sure celery is installed and running http://ask.github.com/celery/introduction.html | ||
|
||
2. Make sure you have a cache backend set up. | ||
|
||
4. Add the backend to the storage argument to a FileField | ||
|
||
image = ImageField(storage=QueuedRemoteStorage(local='django.core.files.storage.FileSystemStorage', | ||
remote='backends.s3boto.S3BotoStorage'), upload_to='uploads') | ||
|