django.core.exceptions.Su疑文件操作有问题:连接的路径

django.core.exceptions.Su疑文件操作有问题:连接的路径,django,heroku,Django,Heroku,“python manage.py collectstatic”不起作用,我认为它可能不适用于任何文件,而这个fa-brands-400.eot恰好是第一个文件 错误: django.core.exceptions.SuspiciousFileOperation: The joined path (/Users/monica/music-emotion/static/webfonts/fa-brands-400.eot) is located outside of the base path c

“python manage.py collectstatic”不起作用,我认为它可能不适用于任何文件,而这个fa-brands-400.eot恰好是第一个文件

错误:

django.core.exceptions.SuspiciousFileOperation: The joined path (/Users/monica/music-emotion/static/webfonts/fa-brands-400.eot) is located outside of the base path component (/Users/monica/music-emotion/staticfiles)

settings.py应该位于根目录中还是可以位于子目录中? My settings.py的末尾有这个-

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.1/howto/static-files/
STATICFILES_DIRS = (
  os.path.join('me_main/static'),
)

STATIC_URL = '/static/'

# Configure Django App for Heroku.
import django_heroku
django_heroku.settings(locals())


我犯了刚才删除的错误

STATICFILES\u STORAGE='whitenoise.STORAGE.CompressedManifestStaticFilesStorage'

现在一切正常