title: How to use Flask to change CSS url value using data from MySQL table?
body: <p>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.</p>
  
  <pre><code>background: url(image link)
  </code></pre>
  
  <p>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.</p>
  
  <p>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:</p>
  
  <pre><code>&lt;div class="featured" style="background: linear-gradient(rgba(0, 0, 0, 0.1), black) border-box, url({{ article.thumbnail }}) no-repeat center center;"&gt;
  </code></pre>
  
  <p>Basically i need to fetch a link from MySQL table for each separate article that is written and display it accordingly...</p>
  
  <p>What would be the best way to go here?</p>