'collectstatic' command fails when WhiteNoise is enabled

前端 未结 14 1029
别那么骄傲
别那么骄傲 2020-12-08 19:51

I\'m trying to serve static files through WhiteNoise as per Heroku\'s recommendation. When I run collectstatic in my development environment, this happens:

14条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 20:32

    In my case there was another solution. In Heroku config I had a setting:

    DISABLE_COLLECTSTATIC=0

    which should let Heroku collect static automaticly by pushing to heroku master, but it didn`t!.

    What I did was removing this setting on

    Heroku > my_app > settings > config vars

    and after that Heroku collected staticfiles automaticly and problem dissappeard.

提交回复
热议问题