0
点赞
收藏
分享

微信扫一扫

Django error: (staticfiles.E002) The STATICFILES_DIRS setting should not contain the STATIC_ROOT se

芷兮离离 2022-11-29 阅读 18


STATIC_ROOT = '/home/yanfriends_server/static/'
STATIC_URL = '/static/'
STATICFILES_DIRS = (os.path.join(BASE_DIR, "/static/"),)

此报错是因为settings中静态文件目录设置的有问题,看看和我的有设么区别,我就是因为少了一个“/”排查了半天。

举报

相关推荐

0 条评论