title: Wrong url with Django Sorl thumbnail with Amazon s3
body: <p>I am having a very strange error in using sorl thumbnails in my django project which uses S3 for media files. I have done my settings as pointed out in this answer <a href="https://stackoverflow.com/a/12848650/538191">https://stackoverflow.com/a/12848650/538191</a> and in fact all my other media files are being generated correctly.</p>
  
  <p>But for the images generated through sorl thumbnails I am getting a url like this</p>
  
  <p><a href="https://he-s3.s3.amazonaws.com/cache/6f/cb/6fcb83175cb63f754fba9facec5dda7f.jpg?Signature=tgDEXyRV3gl3QtK%2BvwliqAtWqpM%3D&amp;Expires=1357853609&amp;AWSAccessKeyId=AKIAJLE6MUHDYS3HN6YQ" rel="nofollow noreferrer">https://he-s3.s3.amazonaws.com/cache/6f/cb/6fcb83175cb63f754fba9facec5dda7f.jpg?Signature=tgDEXyRV3gl3QtK%2BvwliqAtWqpM%3D&amp;Expires=1357853609&amp;AWSAccessKeyId=AKIAJLE6MUHDYS3HN6YQ</a></p>
  
  <p>The problem is strange because its appending the S3 storage path to the image url, but its not adding /media/ in between. If you check </p>
  
  <p><a href="https://he-s3.s3.amazonaws.com/media/cache/6f/cb/6fcb83175cb63f754fba9facec5dda7f.jpg" rel="nofollow noreferrer">https://he-s3.s3.amazonaws.com/media/cache/6f/cb/6fcb83175cb63f754fba9facec5dda7f.jpg</a></p>
  
  <p>the image actually exists there, but since the url is being generated wrong, I am getting a broken image. In the settings file I have declared the DEFAULT_FILE_STORAGE using s3boto and it contains </p>
  
  <pre><code>S3_URL = 'http://he-s3.s3-website-ap-southeast-1.amazonaws.com'
  MEDIA_URL = S3_URL + '/media/'
  </code></pre>
  
  <p>I fail to understand why does the path in the sorl thumbnail image not contain media.</p>
  
  <p>Any help is appreciated.</p>
  
  <p><strong>Update</strong> </p>
  
  <p>Instead of being solved, the problem has in fact compounded. What I did was that I cleared the KVStore in thumbnail and all the database was cleared. I was happy because I thought the problem was solved, I was getting the correct url now. But then I refreshed the page, and again I was getting the wrong url. I don't understand what's happening, if I clear the thumbnail db, it shows the correct url once and after that it again shows the wrong url.</p>