Amazon Elastic Beanstalk not serving django static files

后端 未结 8 2049
你的背包
你的背包 2021-02-18 19:40

I am trying to put up a simple django app on elastic beanstalk. I thought I had the static parts of the app figured out as it works with heroku and on a server that was set up

8条回答
  •  太阳男子
    2021-02-18 19:44

    I came across the same problem today, and I realized that I forgot this option in the .ebextensions/.config file. Make sure you have it too

    option_settings:
      - namespace: aws:elasticbeanstalk:container:python:staticfiles
        option_name: /static/
        value: static/
    

提交回复
热议问题