title: How can I load a string from DB to url_for() flask
body: <p>So I'm building an online store with flask and save the image name in a DB but I tried loading the name to the <code>url_for(filename='')</code> like in the code below but it's not loading the name and it's giving an error <code>expected token ',' got 'string'</code>.</p>
  
  <p>My code:</p>
  
  <pre><code>&lt;img src="{{ url_for('static', filename=f'img/Shop-img/{product.image_name}.png') }}" class="card-img-top" alt="..."&gt;
  </code></pre>
  
  <p>What's stored inside <code>product.image_name</code>:</p>
  
  <p><img src="https://i.stack.imgur.com/spYl1.png" alt="product.image_name"></p>