Closed alsoicode closed 9 years ago
From a distance and without a failing test, that demonstrates the issue, it's really hard to tell what's going on.
But it seems that the ImageCropWidget
isn't set correctly, as the widget includes the media files AND sets some data attributes and without these attributes it's no wonder that even the manually included media files show no effect.
Usually the widget is set by the ImageCropField
, so make sure you don't overwrite that widget somewhere in your code. Apart from that you could try setting the widget explicitly as described in the docs: https://github.com/jonasundderwolf/django-image-cropping#modelform
Installed django-image-cropping on an existing Django 1.7.4 / Python 3.4 project that had easy_thumbnails installed. Settings are verbatim to the docs for installed apps, processors, etc.
My model is defined as:
my form is:
When I:
in my view:
I do not get:
as shown in the example application. Even when I add the CSS and JavaScript by hand, the cropping fields aren't being shown with their respective widgets. Instead when I save the form, my view is just redirecting as it did previously.
What am I missing here? Not to be rude, but literally nothing happens with this application installed. I can see no differences in my installed libraries, Django or Python version (virtualenv is identical), nor my models or forms, templatetags, etc, yet somehow the example application magically works.