[Answered ]-ImageKit in Django

1👍

Your ProductImage model needs to inherit from imagekit.models.ImageModel in instead of models.Model.

1👍

This may just be a formatting mistake in the question and not in your code. But IKOptions should be nested in your model class:

class ProductImage(models.Model):
    # fields, etc...
    class IKOptions:
        # ...

Also, before you run ikflush, did you add ImageKit to INSTALLED_APPS in your settings file?

👤ars

Leave a comment