TND / django-files-widget

Django AJAX upload widget and model field for multiple files or images, featuring drag & drop uploading, upload progress bar, sortable image gallery
Other
88 stars 52 forks source link

TemplateSyntaxError: 'thumbnail' tag received a bad argument: 'format' #12

Open peter-lyon opened 9 years ago

peter-lyon commented 9 years ago

Hi, I'm using files-widget and I have an 500 error with the image upload. The error occurs in line 53 of views.py: 'thumbnailPath': render_to_string('files_widget/includes/thumbnail.html', locals()),

This line returns TemplateSyntaxError, it seems an problem with sorl-thumbnail: TemplateSyntaxError: 'thumbnail' tag received a bad argument: 'format' Can anyone help me with this error?

Thanks!

mionch commented 9 years ago

Which version of sorl-thumbnail do you have?

peter-lyon commented 9 years ago

I've found the problem, I was using sorl_thumbnail and easy_thumbnails in the same project, and the templatetags libraries had the same name. Rename themplatetags library solve this problem.

mionch commented 9 years ago

Oh, cool - happy to hear it

jobimas commented 5 years ago

Easy solution: https://timmyomahony.com/blog/using-sorl-thumbnail-and-easy-thumbnails-in-the-same-template/