Hello everyone!
I've used several times the django_filer app with S3 to upload and store images in django projects and have a nice folder structure in the admin section.
Now I work in a new project for a customer that needs the images to be uploaded directly to Cloudinary (for this purpose I use the
pycloudinary dependency,
https://github.com/cloudinary/pycloudinary), and I would like to have also this folder structure in the admin sections for two reasons:
- Nicer and more structured admin section
- Reuse images: so no need to upload a new image to Cloudinary any time I want to reuse one (that's what the CloudinaryField does)
I haven't found so far a Storages 3rd party app for Cloudinary (such as boto.s3 for S3).
I also thought of having a Image model with the CloudinaryField (and maybe optional fields, such as name, category,...), and any model that requires an image would have a FK to this new Image model. This would solve the issue related to reusing images, but not the one regarding the folder structure in the admin section (that would be ideal!)
Has anyone here tried to do sth similar, or has a workaround for this purpose?
Thanks in advance!
Best regards,
Alvaro Lamas