Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{% load thumbnail %} errors /conflict between sorl-thumbnails and easy_thumbnails #7

Open
arigbs opened this issue Jul 25, 2017 · 3 comments

Comments

@arigbs
Copy link

arigbs commented Jul 25, 2017

@okfish's fork of djangocms-oscar (which fixed the previous issues preventing migration) throws load thumbnail errors arising from conflict between sorl-thumbnails and easy_thumbnails. On a different thread he mentions solving this using django-smart-load-tag. It's not clear how he achieved this though as django-smart-load-tag now throws it's own set of errors.

@arigbs
Copy link
Author

arigbs commented Jul 25, 2017

This line from the issue (codysoyland/django-smart-load-tag#7) identifies the problem: "I bumped into same problem : implementing a project .....with several 3rd parties applications, one of them relying on 'easy_thumbnails' and another one relying on 'sorl_thumbnail', which causes 'templatetag' clash when using {% load thumbnail %}" , which might also be linked to: https://code.djangoproject.com/ticket/17085

@okfish
Copy link

okfish commented Jul 25, 2017

Django-smart-load-tag using is pretty simple. Just add

{% load smart_load %}
{% load thumbnail from easy_thumbnails %}

to templates which wants easy_thumbnails. Default thumbnailer for templates is defined by the order of INSTALLED_APPS dict, AFAIK

@arigbs
Copy link
Author

arigbs commented Jul 25, 2017

If I were to do that, how would I determine which templates require easy_thumbnails, given there are so many templates to consider? I'm not very clear on that bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants