Closed audreyfeldroy closed 10 years ago
Pull request https://github.com/apache/libcloud/pull/80 implemented get_object_cdn_url()
, but it was closed in favor of a different change.
Sorry, I'm a little confused. How are we supposed to use S3 (or google cloud storage in my case) now?
@tecywiz121 We haven't had a chance to look into it yet. If you find a fix for this issue, please submit a pull request.
This should be fixed per https://github.com/pydanny/dj-libcloud/commit/8663cb9567ab4e9c87ffc4a57991490ccae7cfb9
Apparently, libcloud's
S3StorageDriver
class does not implement theget_object_cdn_url()
method. I could not find it in https://github.com/apache/libcloud/blob/95b6a68adb5cbbe071d9da509484146cff6c5626/libcloud/storage/drivers/s3.pyYou can see an example of the
get_object_cdn_url()
method in libcloud'sCloudFilesStorageDriver
(for Rackspace Cloudfiles) class at https://github.com/apache/libcloud/blob/d69adbd886965c7b176b9713cdad2f954d041c3c/libcloud/storage/drivers/cloudfiles.py#L298The error:
The traceback:
Is there a way we could work around this by constructing the URL some other way in dj-libcloud?