使用Heroku部署Django应用程序时出错

jk9hmnmh  于 2022-11-13  发布在  Go
关注(0)|答案(1)|浏览(118)

我知道已经有一个关于Heroku和Django的失业主题了,但是它对我没有帮助。
我有以下错误:

!     Error while running '$ python markb/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

!推送被拒绝,无法编译Python应用程序。
!推送失败

wswtfjt7

wswtfjt71#

使用以下命令禁用collectstatic:

set DISABLE_COLLECTSTATIC=1

然后再试试。

相关问题