3

How do I set the django-oscar setting OSCAR_MISSING_IMAGE_URL when using S3BotoStorage as my backend? I am also using django compressor.

I have created a media folder in my S3 bucket, and manually uploaded the image to the bucket subdirectory. My current setting is

OSCAR_MISSING_IMAGE_URL = MEDIA_URL + "/media/image_not_found.svg"

Where MEDIA_URL is my S3 bucket URL.

Any way to get it to render the missing image correctly?

Tui Popenoe
  • 2,098
  • 2
  • 23
  • 44

1 Answers1

3

While not familiar with the specifics of django-oscar, according to the docs, OSCAR_MISSING_IMAGE_URL by default, is set to image_not_found.jpg.

So I guess in your case you only need image_not_found.svg. There is no need to pass the MEDIA_URL. Also, according to the inline docs in the code, sorl (the thumbnailing engine) requires all files to be inside MEDIA_ROOT.

eyepatch31
  • 77
  • 2
  • 10
Bjorn
  • 5,272
  • 1
  • 24
  • 35