Skip to content
Browse files

Added a FileSystemAndS3Backend

  • Loading branch information...
1 parent d287101 commit 9399c45da14dbcbe4be2331b617331409d14b4f5 @shabda shabda committed Apr 2, 2010
Showing with 9 additions and 1 deletion.
  1. +9 −1 queued_storage/backend.py
View
10 queued_storage/backend.py
@@ -65,4 +65,12 @@ def size(self, name):
return self.get_storage(name).size(name)
def url(self, name):
- return self.get_storage(name).url(name)
+ return self.get_storage(name).url(name)
+
+
+class FileSystemAndS3Backend(QueuedRemoteStorage):
+ def __init__(self, cache_prefix=QUEUED_REMOTE_STORAGE_CACHE_KEY_PREFIX):
+ super(FileSystemAndS3Backend, self).__init__(local='django.core.files.storage.FileSystemStorage',
+ remote='storages.backends.s3boto.S3BotoStorage', cache_prefix=cache_prefix)
+
+

0 comments on commit 9399c45

Please sign in to comment.
Something went wrong with that request. Please try again.