Using Cloudfront with Django S3Boto

后端 未结 2 1207
-上瘾入骨i
-上瘾入骨i 2021-01-30 23:52

I have successfully set up my app to use S3 for storing all static and media files. However, I would like to upload to S3 (current operation), but serve from a cloudfront instan

2条回答
  •  一生所求
    2021-01-31 00:08

    I had a similar issue and just setting AWS_S3_CUSTOM_DOMAIN to the Cloudfront url in Django's settings.py worked for me. You can check the code here.

提交回复
热议问题