title: Django :How to check if a image exists in site media or not?
body: <p>I want to know if a particular file "logo.png" exists in my site_media folder or not </p>
  
  <p>These are my settings:</p>
  
  <pre><code>MEDIA_URL = "/site_media/media/"
  STATIC_ROOT = os.path.join(PROJECT_ROOT, "site_media", "static")
  </code></pre>
  
  <p>I tried <code>default_storage.exists("/site_media/media/logo.png")</code> which gives an permission error</p>
  
  <p>I also tried the URLValidator .</p>
  
  <p>Is there any better way to get this done ? Any help is appreciated . </p>
  
  <p>Thanks.</p>