Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

whitenoise.storage.MissingFileError: The file 'ecommerce/fonts/icofont.eot

I am trying to deploy my application on Heroku. It was uploaded successfully before, however, I made some changes and I tried re-uploading but it hasn't been responding since then. I keep getting this error: whitenoise.storage.MissingFileError: The file 'ecommerce/fonts/icofont.eot' could not be found with . What can I do about this?

This is the traceback:

whitenoise.storage.MissingFileError: The file 'ecommerce/fonts/icofont.eot' could not be found with <whitenoise.storage.CompressedManifestStaticFilesStorage object at 0x7f73c4861320>.
remote:        The CSS file 'ecommerce/css/icofont.css' references a file which could not be found:
remote:          ecommerce/fonts/icofont.eot
remote:        Please check the URL references in this CSS file, particularly any
remote:        relative paths which might be pointing to the wrong location.
remote:        Sentry is attempting to send 0 pending error messages
remote:        Waiting up to 2 seconds
remote:        Press Ctrl-C to quit

I have this in my settings.py file


STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATIC_URL = '/static/'
like image 243
Jumoke Avatar asked Nov 06 '22 08:11

Jumoke


1 Answers

This comes late but I hope this will help someone who comes across the issue, at least as a temporary fix:

Using

STATICFILES_STORAGE = 'whitenoise.storage.CompressedStaticFilesStorage'

which disables the django caching mechanism, seems to have worked. This error was happening to me even with WHITENOISE_MANIFEST_STRICT = False

http://whitenoise.evans.io/en/stable/django.html

like image 147
Isidoro Avatar answered Nov 16 '22 07:11

Isidoro