Django on Heroku - Broken Admin Static Files

前端 未结 9 503
天命终不由人
天命终不由人 2020-12-24 14:37

I have a Django app running on Heroku/Cedar, configured as per the instructions at https://devcenter.heroku.com/articles/django

Using gunicorn as per Heroku\'s instr

9条回答
  •  时光说笑
    2020-12-24 15:32

    If you are deploying to Heroku without using whitenoise (which I would suggest), definitely use dj_static https://pypi.python.org/pypi/dj-static!

    I spent the past 3 hours trying to serve my files to heroku and dj_static worked within a matter of 2 minutes.

提交回复
热议问题