TOP

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')

 测试不在有问题

 

posted @ 2019-03-12 21:36  羊驼之歌  阅读(1865)  评论(0编辑  收藏  举报