I am creating my first website using Flask and I was wondering if it is possible to alter CSS files using jinja2 like html files... My frontend guy made all images to be in css and i can't figure out how to change them.
background: url(image link)
I want to fetch an image link from my mysql table, which stores a new image for every news post made, and display it there.
I found some solutions that use jinja2 but they are for local images stored on the same machine. Also i found a way to do it using html styling, but that makes the line way too long for html to look organized:
<div class="featured" style="background: linear-gradient(rgba(0, 0, 0, 0.1), black) border-box, url({{ article.thumbnail }}) no-repeat center center;">
Basically i need to fetch a link from MySQL table for each separate article that is written and display it accordingly...
What would be the best way to go here?