报错现象

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

 

相关文章: