jonasundderwolf / django-image-cropping

Django helper application to easily and non-destructively crop arbitrarily large images in admin and frontend.
Other
553 stars 131 forks source link

Admin doesn't work #54

Closed skijash closed 9 years ago

skijash commented 9 years ago

Hi, When I set up a new project and use the lib as described in the docs, admin doesn't work properly. screen shot 2014-10-08 at 17 22 43

$ pip list Django (1.7) django-image-cropping (0.8.4) easy-thumbnails (2.2) Pillow (2.6.0) wsgiref (0.1.2)

anrie commented 9 years ago

It looks like Jcrop isn't properly loaded in your example. Are there any errors showing up in the console?

But the real problem seems to be that the image isn't correctly loaded. Are you sure that the image exists and that your MEDIA_URL and MEDIA_ROOT are setup correctly?

marciomazza commented 9 years ago

Same cenario for me. Nothing happens.

django-image-cropping (0.9) easy-thumbnails (2.2) Pillow (2.6.0) pip (1.5.6) ...

It would really help if we knew what to expect. You could add some printscreens to the docs.

marciomazza commented 9 years ago

My problem seems to be solved. In my case I just noticed I customized fieldsets and that the ImageRatioField was being displayed. Maybe the docs could explain it must be, since the croping is made in a widget for this field. I thought the image field would be the one changed.

anrie commented 9 years ago

Sorry, but I'd say the docs are already pretty clear about this:

The cropping itself happens in the ImageRatioField, the ImageCropField will still behave like a regular ImageField. If you're selectively including or excluding fields from the ModelForm, remember to include the ImageRatioField.

If you have specific suggestions for improving the current docs don't hesitate to send a Pull Request.

skijash commented 9 years ago

I solved the problem, and I sent a pull request for changing README.rst to clarify how a new project should be set up.