pycloudinary icon indicating copy to clipboard operation
pycloudinary copied to clipboard

How To: Upload Multiple Images in Django Admin

Open ygamretuta opened this issue 7 years ago • 1 comments

doc says use CloudinaryJsFileField, and some instructions to set it up with a frontend template and a view. How do I do it with the django admin?

ygamretuta avatar Apr 19 '17 03:04 ygamretuta

Hi @ygamretuta,

Sorry for the delayed response.

You can override and provide your own ModelForm to add the CloudinaryJsFileField.

There is an example of this field in our Django sample - https://github.com/cloudinary/cloudinary-django-sample

Also, please refer to the Django docs for more info on customised forms in Admin - https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.form

MaorGariv avatar May 21 '17 07:05 MaorGariv