简体   繁体   中英

Django + Amazon S3 not loading static files on production

So i have my Django site and i am trying to have my static files on S3, but i am getting a ERR_INSECURE_RESPONSE when my site is on a production server. If i click on the link and accept it, it then loads the page.

I am using django-storages and on my local machine everything works fine (my S3 credentials are ok) but when i deploy to production i get the error.

Do i need to have https enabled on my site to be able to serve static files through S3??

What should i do?

THanks

i think my problem was related to bucket policies. i am not sure as i tried many different things but i would bet that's the one that made it work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM