Env : Max OSX 10
,Python3.5
, Django 1.10
I exactly follow below things,
pip install sorl-thumbnail
- Add
sorl.thumbnail
to mysettings.INSTALLED_APPS
python manage.py makemigrations
andpython manage.py migrate <my_app>
And my very very simple template :
{% extends 'chacha_dabang/skeleton/base.html' %}
{% load thumbnail %}
{% block content %}
{% thumbnail "http://www.nextgen-gallery.com/wp-content/uploads/2008/12/abend.jpg" "100x100" crop="center" as im %}
<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}">
{% endthumbnail %}
{% endblock %}
But it doesn't even work!
When I check html elements through Chrome development tool
, no img
tag at all! Only my base.html
elements exists....
Anything that I missed?