title: Django: Python variable data as background image
body: <h1>Details and Problem:</h1>
  
  <p>I am making a website which uses steam's social authentication and API, it saves users data in the database, and makes the session cookie that contains two main data, username and logged in cookies.</p>
  
  <p><strong>The data which the variable contains is the url to the image</strong>, which leads me to the problem, i want to show the picture of user on the index page, but css static file would not allow me to use the variable.</p>
  
  <p>so i tried some other options:</p>
  
  <ol>
  <li><p>Using HTML <code>&lt;style&gt;</code> tag:<br>
  <code>&lt;a class="profile_picture" href="/profile" style="background-image: url({{ picture }})"&gt;&lt;/a&gt; # would not work, as it takes every character as string.</code></p></li>
  <li><p>Using HTML <code>&lt;img&gt;</code> tag:</p>
  
  <p><code>&lt;img class="profilepicture" src="{{ picture }}"&gt;&lt;/img&gt; # same problem here, takes every character as unicode string.</code></p></li>
  </ol>
  
  <h1>Question:</h1>
  
  <p>Is there any other way to do this with the setup i have? ( Django, CSS, HTML, Python ), i am trying to do this without installing something extra, i have seen sass, but is there still any other possible way?</p>
  
  <p>Can i use <code>&lt;style&gt;</code> or <code>&lt;img&gt;</code> tag to take variable url as background image?, if so how?</p>