#Problems displaying images

2 messages · Page 1 of 1 (latest)

frosty gulch
#

Hello, I'm a bit new and I have a really big problem and I don't know how to solve it, my problem is that I made a repetitive function in javascript for my different cards on the web, the problem is that django uses static, I've tried some ways and it doesn't work unless I add all the javascript code to the html code, I've checked the javascript call well but it doesn't work, I will send images of the base that is to modify, as I said in my javascript I have this function

addProductCard('Producto 1', '$12.99', 'img/casa1.jpeg', 12);
addProductCard('Producto 2', '$15.50', 'img/casa2.jpeg', 25);
addProductCard('Producto 3', '$20.00', 'img/casa3.jpg', 19);
addProductCard('Producto 4', '$8.75', 'img/casa4.jpeg', 40);
addProductCard('Producto 5', '$25.99', 'img/casa5.jpeg', 35);
addProductCard('Producto 6', '$18.30', 'img/casa6.jpeg', 62);

In my HTML, I only call the function with the ID, that is, it was displayed automatically, but we changed Django and it doesn't load the images. I know it's static. I've tried some methods and they don't work for me at all, unless I add the script in HTML.

abstract verge