etianen / django-s3-storage

Django Amazon S3 file storage.
BSD 3-Clause "New" or "Revised" License
412 stars 94 forks source link

Is it possible to use this library for yandex object storage? #119

Closed rnmhdn closed 1 year ago

rnmhdn commented 3 years ago

I tried to configure it to work with yandex but I kept getting The AWS Access Key Id you provided does not exist in our records.

keep in mind that the same config works with django-storages.

etianen commented 3 years ago

django-s3-storage doesn't explicitly support or not-support yandex object storage. It supports S3, so if something else exposes an S3-like interface, I'd imagine it would work.

If you can figure out the source of the problem, I'd take an MR.

On Mon, 21 Dec 2020 at 09:22, levi scott notifications@github.com wrote:

I tried to configure it to work with yandex but I kept getting The AWS Access Key Id you provided does not exist in our records.

keep in mind that the same config works with django-storages.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/etianen/django-s3-storage/issues/119, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEKCGVBDTCFXDALQZOUEDSV4HT5ANCNFSM4VD6I7RQ .

rnmhdn commented 3 years ago

I think it has to do with how the url is constructed.

MichaelAnckaert commented 3 years ago

I think you can just set the setting AWS_S3_ENDPOINT_URL to the correct URL (ie: storage.yandexcloud.net). I don't have a yandex account so can't really test it. But if the compatibility they claim is correct, this should do it.