django - Unable to access folders and files from amazon s3 -


i have deployed django code heroku , trying serve static , media files amazon s3. s3 giving access folders created in interface not folders copied collectstatic. have enabled s3 act static website , used policy below.

{     "version": "2008-10-17",     "id": "policy1380877762691",     "statement": [         {             "sid": "stmt1380877761162",             "effect": "allow",             "principal": {                 "aws": "*"             },             "action": "s3:getobject",             "resource": "arn:aws:s3:::harpoons1/*"         }     ] }  non working link: http://harpoons1.s3-website-us-east-1.amazonaws.com/elate/ working link: http://harpoons1.s3-website-us-east-1.amazonaws.com/ 

is there anyway can give public access every folder , file inside s3.so can serve them on website. appreciated.

what inside folder "elate/" ?

to display default page need setup default index document such index.html.

this setup in "static website hosting" dialog under "properties" bucket.


Comments