'collectstatic' command fails when WhiteNoise is enabled

前端 未结 14 993
别那么骄傲
别那么骄傲 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:14

    I just had this same issue and fixed it by removing this line from my settings file,

    STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
    

    I got this line from the Heroku documentation page...

提交回复
热议问题