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
- [Answered ]-Django admin directory on Debian
- [Answered ]-Issue involving django admin rights for non superuser accounts
- [Answered ]-Django: How to implement system flags
- [Answered ]-Why python module not found on apache
- [Answered ]-How to display the post user created with {% if user.is_authenticated == post.author %}?
Source:stackexchange.com