Django cms and responsive images

I am creating a responsive website with django and django-cms. So far so good. Now I'm at the point where I need to point and deliver responsive images to different devices. How do you solve this problem for yourself?

Is it possible for the site author to upload an image of different sizes (e.g. small, medium, large) to the backend for use with srcset (possibly with django-cascade ) Or are there automated solutions for django and django-cms such as responsive php -images project .

I found django-daguerre, but I'm not sure how this can be implemented with django-cms. There is also django-responsive-images 1.0.2.

So I want to ask you how do you solve this problem for your projects.

+3


source to share


1 answer


Here is what I do for react (and retina) images in djangocms.



Of course, you can also use the interchange foundation , retina. js or your own css / js solution to grab the images you want for the respective resolutions.

+1


source







All Articles