The MEDIA_ROOT is set up correctly: MEDIA_ROOT = '/home/myusername/
myprojectname/uploads/'
And the images are stored here: /uploads/files/img/foldername/file.jpg
The relative path, /uploads/files/img/wahanda/name.jpg works..but not
like this:
{% thumbnail result.object.image_path "50x50" crop="80
Did you correctly set up MEDIA_ROOT in settings ? Sorl-thumbnail only
use files from MEDIA_ROOT try to move uploads/ to media a then use
realtive path to file.
On 24 Maj, 06:40, Oana Salageanu wrote:
> I'm not sure what I'm doing wrong, this is my template code:
> {% load thumbnail %}
>
> {% thum
I'm not sure what I'm doing wrong, this is my template code:
{% load thumbnail %}
{% thumbnail result.object.image_path|make_thumb "50x50" crop="80%
top" as im %}
{% endthumbnail %}
where result.object.image_path|make_thumb, it's something like this:
http://93.XXX.XX.XXX:8000/uploads/files/img/
3 matches
Mail list logo