且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Heroku 上找不到 Django 静态文件(带有白噪声)

更新时间:2023-11-16 13:19:22

我明白了.我需要添加

python manage.py collectstatic --noinput;

在我的 Procfile 中.Heroku 文档说 collecticstatic 是自动触发的.https://devcenter.heroku.com/articles/django-assets

in my Procfile. Heroku doc said that collecticstatic is automatically triggered. https://devcenter.heroku.com/articles/django-assets

谢谢