报错现象

Error fetching command 'collectstatic': You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path. Command 'collectstatic' skipped

报错解决

在 settings.py 中添加这一句话则可以解决

STATIC_ROOT = os.path.join(BASE_DIR, 'static')

 测试不在有问题

Error fetching command 'collectstatic': You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path. Command 'collectstatic' skipped

 

相关文章:

  • 2021-07-18
  • 2021-05-18
  • 2021-12-12
  • 2021-09-24
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
  • 2021-06-21
猜你喜欢
  • 2021-06-20
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
相关资源
相似解决方案