[Answer]-TypeError: __init__() got an unexpected keyword argument 'image_field'

2👍

This is a bug in Django Imaging; see issue #11 in their tracker:

django-imagekit has been updated and the image_field kwarg has been renamed to source, its a bug in django-imaging and needs to be fixed.

That rename took place quite some time ago, in December 2012.

The work-around would be to downgrade Django-Imagekit to version 2.0.2, the last release with the field still named image_field. However, a project that hasn’t been maintained to fix a field rename from 2 and a half years ago is perhaps not production worthy. Issue #11 was filed over a year ago and hasn’t been fixed in all that time.

-1👍

In your models.py, try
photos = ImagingField()
instead of
photos = models.ImagingField()

Please read documentation https://github.com/pielgrzym/django-imaging

Add ImagingField to desired model from imaging.fields import
ImagingField

class Somemodel(models.Model):
photos = ImagingField()

Leave a comment