This is HTML code piece that in my template:
{%load thumbnail%}
<img style="border: 1px solid #53BCB8; padding: 2px;" src="{%thumbnail 'photodir/photo.jpg' 256x256%}" />
And in my settings.py
MEDIA_URL="http://url.com/static/"
And this is the rendered state of HTML:
<img style="border: 1px solid #53BCB8; padding: 2px;" src="http://url.com/staticphotodir/photo_jpg_256x256_q85.jpg" />
the problem is: in the rendered html, img url does not valid. Trailing slash is missing between "static" and "photodir". How is that happenning and what is the solution? Can anybody explain?
Note: thumbnail
template tag belongs to sorl-thumbnail