title: Django MEDIA_URL and MEDIA_ROOT
body: <p>I'm trying to upload an image via the Django admin and then view that image either in a page on the frontend or just via a URL.</p>
  
  <p>Note this is all on my local machine.</p>
  
  <p>My settings are as follows:</p>
  
  <pre><code>MEDIA_ROOT = '/home/dan/mysite/media/'
  
  MEDIA_URL = '/media/'
  </code></pre>
  
  <p>I have set the upload_to parameter to 'images' and the file has been correctly uploaded to the directory:</p>
  
  <pre><code>'/home/dan/mysite/media/images/myimage.png'
  </code></pre>
  
  <p>However, when I try to access the image at the following URL:</p>
  
  <pre><code>http://127.0.0.1:8000/media/images/myimage.png
  </code></pre>
  
  <p>I get a 404 error.</p>
  
  <p>Do I need to setup specific URLconf patters for uploaded media?</p>
  
  <p>Any advice appreciated.</p>
  
  <p>Thanks.</p>