jschneier / django-storages

https://django-storages.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
2.72k stars 852 forks source link

<LibcloudError in <class 'libcloud.storage.drivers.s3.S3StorageDriver'> 'Unknown error. Status code: 302'> when I'm using Google #272

Open sento93 opened 7 years ago

sento93 commented 7 years ago

LIBCLOUD_PROVIDERS = { 'static': { 'type': 'libcloud.storage.types.Provider.GOOGLE_STORAGE', 'user': 'my-user', 'key': 'my-key', 'bucket': 'my-static', }, 'media': { 'type': 'libcloud.storage.types.Provider.GOOGLE_STORAGE', 'user': 'my-user', 'key': 'my-key', 'bucket': 'my-media', }, } DEFAULT_LIBCLOUD_PROVIDER = 'static' DEFAULT_FILE_STORAGE = 'storages.backends.apache_libcloud.LibCloudStorage' STATICFILES_STORAGE = 'storages.backends.apache_libcloud.LibCloudStorage'

Using this config Django raises <LibcloudError in <class 'libcloud.storage.drivers.s3.S3StorageDriver'> 'Unknown error. Status code: 302'> when a render function is called. I've tried renaming the providers to google or default and it gives the same problem.

jschneier commented 7 years ago

Possibly related to #269.