Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Add support to django-minio-storage #147

Open
nunesvictor opened this issue Aug 29, 2019 · 6 comments
Open

Add support to django-minio-storage #147

nunesvictor opened this issue Aug 29, 2019 · 6 comments

Comments

@nunesvictor
Copy link

I'm facing an issue with collectfast and django-minio-storage:

'MinioStaticStorage' object has no attribute 'location'
--> Continuing using default collectstatic.

Isn't Min.io supported by collectfast? It would be great have this working beacuse Min.io is such a great BYOS alternative to S3 and GCS.

@antonagestam
Copy link
Owner

Min.io is not yet supported. There is some ongoing work in making the storage backend support of Collectfast pluggable and decouple the S3 parts from the "core", once that is done it should be feasible to implement support for minio as well.

@nunesvictor
Copy link
Author

Cool, I wold love to help with it but I think this is a little beyond my knowledge.

So now we play the waiting game. Thank you for the quick response.

@antonagestam
Copy link
Owner

Support for pluggable strategies is now merged. You can check how support for boto, boto3, and gcloud storages is implemented here: https://github.com/antonagestam/collectfast/tree/master/collectfast/strategies

@nunesvictor
Copy link
Author

I think minio uses the same implementation than Amazon S3. I will test it tomorrow. thanks

@antonagestam
Copy link
Owner

@nunesvictor Were you able to use the boto3 or boto implementation to make it work with minio?

@nunesvictor
Copy link
Author

Sorry for the delay.

Actually it didn't work. It failed trying to import some boto3 module, so the process can't be done transparently just setting Minio as default static storage and using boto3 as collectfast strategy.

I'll install the boto3 dependencies and give it another try next week.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants