[Answered ]-Static files in Django with AWS S3

1👍

You can do solve your problem using :

  1. Set S3 bucket as static web hosting: Bucket -> Properties -> Static website hosting -> Set root file and error file as index.html
  2. Use public end point as URL to access your content like css, js or images

Your S3 is not public static hosting to access without Access token of AWS account.

For example how to do S3 bucket as hosting see this blog : https://www.internetkatta.com/host-angular-2-or-4-or-5-version-in-aws-s3-using-cloudfront

Leave a comment