I hope you're all well. I'm making a small Django site, for the frontend I wanted to integrate thumbnail to properly visualize the graphics of the site but this is not displayed
So I went through 3 steps with the sorl-thumbnail github:
- pip install sorl-thumbnail
- in the django settings, specify 'sorl.thumbnail' in the apps section
- Put the following lines in a template where I want to display a thumbnail
{% load thumbnail %}
{% thumbnail item.image "100x100" crop="center" as im %}
<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}">
{% endthumbnail %}
But nothing is displayed. Do you have any idea why?