Commits

Anonymous committed 33962f2

Added moka backend

Comments (0)

Files changed (1)

storages/backends/moka.py

+from queued_storage.backend import QueuedRemoteStorage
+import logging
+
+# Get an instance of a logger
+logger = logging.getLogger(__name__)
+logger.setLevel(logging.INFO)
+
+
+class MokaStorage(QueuedRemoteStorage):
+    """Moka custom storage."""
+
+    def __init__(self):
+        logger.info("Initializing storage: %s", self)
+        super(MokaStorage, self).__init__(
+            local='django.core.files.storage.FileSystemStorage',
+            remote='storages.backends.mosso.CloudFilesStorage')