title: Checking if image exists - Django (1.3)
body: <p>I have a template to display images according to some variable {{var}}.jpg
  If somehow for a particular value of var, there is not corresponding image, I want to display a fallback image for aesthetic purposes.</p>
  
  <p>How do I achieve this?</p>
  
  <p>I have defined a static path and I'm using</p>
  
  <pre><code>{% load static %}
  
  &lt;img src="{% get_static_prefix %}img/{{var}}.jpg"&gt; 
  </code></pre>
  
  <p>to display my images.</p>