Skip to main content

Django cloudinary 1.14.0 default_image not working

Comments

1 comment

  • Stephen Doyle

    Hi Dawid,

    Apologies for the delay; it looks like this question was posted a while ago but didn't come to my attention until today.

    In your example there, it doesn't appear that you're setting the public_id correctly.

    The default image placeholder feature tells us to return a default if there's a problem with the requested image, but you still need to request an image first or else the SDK can't build the URL correctly (to point to the requested image and specify the other transformations, filters, etc, including the default image).

    For example, a request to 12345.jpg with a default image of sample.jpg would produce a '<img src>' value like 'http://res.cloudinary.com/demo/image/upload/d_sample.jpg/12345.jpg'
    Could you please take a look and see if specifying an image lets the SDK create the correct tag?

    0

Post is closed for comments.