更新时间: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
谢谢