whitenoise.storage.MissingFileError: файл 'ecommerce / fonts / icofont.eot - PullRequest
0 голосов
/ 15 апреля 2020

Я пытаюсь развернуть свое приложение на Heroku. Ранее он был успешно загружен, однако я внес некоторые изменения и попытался повторно загрузить его, но с тех пор он не отвечает. Я получаю эту ошибку: whitenoise.storage.MissingFileError: Не удалось найти файл 'ecommerce / fonts / icofont.eot'. Что я могу сделать с этим?

Это трассировка:

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

У меня есть это в моем файле settings.py


STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATIC_URL = '/static/'
...