title: Getting MEDIA images on Amazon S3 server on template
body: <p>The static files (css, js, images) are serving from local whilst media files (uploaded images and videos) are on Amazon S3 server in my project.</p>
  
  <p>I can upload media files to Amazon S3 without any problem. But I cannot get the URL's of the files on templates.</p>
  
  <p>I have tried the static files and it worked: (But static files will be on the local)</p>
  
  <pre><code> {% load static from staticfiles %}
   {% static "imagename.png" %}
  </code></pre>
  
  <p>And how can I do it for MEDIA files?</p>
  
  <pre><code> {% media "imagename.png" %} # maybe something like that? :)
  </code></pre>
  
  <p>My settings file is like that:</p>
  
  <pre><code>  INSTALLED_APPS: 'storages'
  
    DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
    DEFAULT_S3_PATH = "media"
  
    MEDIA_ROOT = '/%s/' % DEFAULT_S3_PATH
    UPLOAD_DIR = MEDIA_ROOT
  
    MEDIA_URL = '//s3.amazonaws.com/%s/media/' % AWS_STORAGE_BUCKET_NAME
  </code></pre>