'collectstatic' command fails when WhiteNoise is enabled

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

    It worked for me by commenting out the whitenoise in settings.py in production.

    #STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
    #WHITENOISE_ROOT = os.path.join(BASE_DIR, 'staticfiles')
    

提交回复
热议问题