Django-oscar product images error

954 views
Skip to first unread message

MONICA

unread,
Apr 1, 2014, 11:31:17 PM4/1/14
to django...@googlegroups.com
The product images get uploaded to the media folder correctly but the are not being requested when the product page is opened.The image container for the product image is just a div with no image src Also, the catalog images are working and are being displayed correctly. I am not able to figure out whats wrong. Please help. I am attaching the product page and category page screenshots.
Screenshot from 2014-04-01 12_24_55 (1).png
Screenshot from 2014-04-01 12_21_56 (1).png

Oleg Fish

unread,
Apr 2, 2014, 12:10:35 AM4/2/14
to django...@googlegroups.com
Hi, Monica
Is sorl-thumbnail working properly and has permissions to write cached thumbs? Also, you can set TEMPLATE_DEBUG=True and THUMBNAIL_DEBUG=True in your settings_local.py.

Oleg

среда, 2 апреля 2014 г., 7:31:17 UTC+4 пользователь MONICA написал:

MONICA

unread,
Apr 2, 2014, 12:23:20 AM4/2/14
to django...@googlegroups.com
I just added THUMBNAIL_DEBUG=True and now it gives this error 



IOError at /catalogue/category/3d-printing_1/

decoder jpeg not available

Oleg Fish

unread,
Apr 2, 2014, 2:01:27 AM4/2/14
to django...@googlegroups.com
Probably, you had PIL installed without JPEG support. Look at this topic https://groups.google.com/forum/?fromgroups#!searchin/django-oscar/jpeg/django-oscar/MEPnKZhjXxg/el3Jq06hURYJ
or try install Pillow instead of PIL as the last one requires some symlink hacks (on debian or ubuntu)


среда, 2 апреля 2014 г., 7:31:17 UTC+4 пользователь MONICA написал:
The product images get uploaded to the media folder correctly but the are not being requested when the product page is opened.The image container for the product image is just a div with no image src Also, the catalog images are working and are being displayed correctly. I am not able to figure out whats wrong. Please help. I am attaching the product page and category page screenshots.

Muhammad Karimov

unread,
Mar 24, 2016, 4:40:14 PM3/24/16
to django-oscar
I had the same problem then I update Pillow to 3.1.1 it works!
just type in terminal: pip install --upgrade Pillow

Yağız Nalçakan

unread,
Aug 29, 2016, 10:03:55 AM8/29/16
to django-oscar
Hello,

First of all, I am trying to add images to a product. I am already updated Pillow with jpeg support. But I am giving ProductImage models' original field a http url. But it didn't upload with ImageField upload_to method.
it give an error like that:
Remote file [http://abc.def.net/upload/6d96a145fedfacee4871e264c816e09fc6a07084.jpg] at [440x400] does not exist

Is there a way to add images from an http url?

And second of all, When I want to add an image from dashboard, it didn't seen after saving.

Can you help me about that issue?

Regards,
Yağız

24 Mart 2016 Perşembe 22:40:14 UTC+2 tarihinde Mukhammad Karimov yazdı:
Reply all
Reply to author
Forward
0 new messages