views:

96

answers:

2
+1  Q: 

ImageKit in Django

+1  A: 

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
Yeah that is just an error from how stackoverflow rendered it. I have fixed it now so it should reflect that it is nested inside the model now.Also I do have 'imagekit' added to INSTALLED_APPS
thomallen
+1  A: 

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

jdriscoll
That was it! You are the man! Now if I can just get Jpeg support working in PIL... haha.
thomallen