所以,我已经同步了一个从GitHub到Heroku的Django应用程序,我试图从他们的web界面进行部署,但在日志中写道
Error while running '$ python manage.py collectstatic --noinput'.
See traceback above for details.
You may need to update application code to resolve this error.
Or, you can disable collectstatic for this application:
$ heroku config:set DISABLE_COLLECTSTATIC=1
https://devcenter.heroku.com/articles/django-assets
Push rejected, failed to compile Python app.
Push failed我知道你可以使用Heroku CLI来禁用集合静态,但我找不到一种方法来同步我的GitHub/Heroku应用程序与Heroku CLI。
发布于 2017-10-24 14:55:00
所以,在我的例子中,罪魁祸首似乎是其他东西,我没有向ALLOWED_HOSTS添加适当的变量,而是添加了heroku应用程序来修复它
https://stackoverflow.com/questions/46902711
复制相似问题