Collectstatic error while deploying Django app to Heroku

前端 未结 10 1826
长情又很酷
长情又很酷 2020-12-04 06:34

I\'m trying to deploy a Django app to Heroku, it starts to build, download and installs everything, but that\'s what I get when it comes to collecting static files



        
10条回答
  •  有刺的猬
    2020-12-04 07:27

    I faced the same issue while deploying my app. I realized I had updated my pip version, installed few plugins but forgot to create a fresh requirements.txt file.

    Run pip freeze > requirements.txt in your terminal
    Run python manage.py collectstatic
    Now push the code to github and deploy to heroku server

    Hope this helps if that is the case

提交回复
热议问题