title: Serve static files on heroku using AWS S3 for django?
body: <p>i'm deploying a django application using heroku and AWS S3 for static files, the problem is that i haven't found information on how to link the Postgres DB of heroku with the S3 service.</p>
  
  <p>I've already set the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, S3_BUCKET, Add CORS Configuration, but my question is how can i link the S3 storage with the postgres DB of Heroku?  Is this possible?</p>
  
  <p>This is how my model looks in the admin, but if i upload the images here, after 5 minutes disappears.
  <a href="http://ishopss.com/imageUpload.png" rel="noreferrer">Image Upload for the model http://ishopss.com/imageUpload.png</a></p>
  
  <p>Of course i can use static urls like this, but the problem is that i want to display different images for very course, not the same image for all.
  <a href="http://ishopss.com/for.png" rel="noreferrer">serve in the db http://ishopss.com/for.png</a></p>
  
  <p>So my code needs to be like this, to serve different images
  <a href="http://ishopss.com/course.png" rel="noreferrer">aws static file http://ishopss.com/course.png</a></p>
  
  <p>I hope some one could help me, Thanks.</p>