collectfast
collectfast copied to clipboard
Add support to django-minio-storage
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.
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.
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.
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
I think minio uses the same implementation than Amazon S3. I will test it tomorrow. thanks
@nunesvictor Were you able to use the boto3 or boto implementation to make it work with minio?
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.