Skip to content

Commit

Permalink
add support for LibCloudStorage with Django1.7 migration features
Browse files Browse the repository at this point in the history
  • Loading branch information
Forrest committed Dec 12, 2014
1 parent b6f12a6 commit 4e9e36c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storages/backends/apache_libcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
from django.core.files.base import File
from django.core.exceptions import ImproperlyConfigured

from storages.compat import BytesIO
from storages.compat import BytesIO, deconstructible

try:
from libcloud.storage.providers import get_driver
from libcloud.storage.types import ObjectDoesNotExistError, Provider
except ImportError:
raise ImproperlyConfigured("Could not load libcloud")


@deconstructible
class LibCloudStorage(Storage):
"""Django storage derived class using apache libcloud to operate
on supported providers"""
Expand Down

0 comments on commit 4e9e36c

Please sign in to comment.