collectfast icon indicating copy to clipboard operation
collectfast copied to clipboard

Add support to django-minio-storage

Open nunesvictor opened this issue 5 years ago • 6 comments

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.

nunesvictor avatar Aug 29 '19 18:08 nunesvictor

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.

antonagestam avatar Aug 30 '19 07:08 antonagestam

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.

nunesvictor avatar Sep 04 '19 14:09 nunesvictor

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

antonagestam avatar Oct 06 '19 11:10 antonagestam

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

nunesvictor avatar Oct 06 '19 15:10 nunesvictor

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

antonagestam avatar Nov 29 '19 13:11 antonagestam

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.

nunesvictor avatar Nov 29 '19 19:11 nunesvictor