title: How does Django serve media files?
body: <p>I have set up a <a href="http://en.wikipedia.org/wiki/Django_%28web_framework%29" rel="noreferrer">Django</a> application that uses images. I think I have set up the media settings MEDIA_ROOT and MEDIA_URL correctly. However the images don't show up. Do you know what can be the problem?</p>
  
  <p>Let consider this example:</p>
  
  <p>The image files are under <strong>/home/www/media/app/photos</strong> and we are trying to request <a href="http://example.com/photos/123.jpg" rel="noreferrer">http://example.com/photos/123.jpg</a></p>
  
  <p>Should I use these settings?</p>
  
  <pre><code>MEDIA\_ROOT = /home/www/media
  
  MEDIA_URL = http://example.com/app
  </code></pre>
  
  <p><strong>UPDATE:</strong> Forgot to mention that I'm using built-in development server.</p>