I'm trying to make a template dynamic. I added the jinja pattern wherever required and it worked except for the background images of the page.
I tried this:
<div class="background_image" style="background-image:url({% static 'images/travello.jpg' %})"></div>
I expected to see the bg_image on the page, but i get nothing except blank white space. I get other images in the same folder using:
<img src="{% static 'images/destination_4.jpg' %}" alt="">
url('/static/path/to/images/im.jpg'). If you look at the source code in your browser inspector you'll see the quotes are missing.