STATIC_ROOT = '/home/yanfriends_server/static/'
STATIC_URL = '/static/'
STATICFILES_DIRS = (os.path.join(BASE_DIR, "/static/"),)
此报错是因为settings中静态文件目录设置的有问题,看看和我的有设么区别,我就是因为少了一个“/”排查了半天。
Django error: (staticfiles.E002) The STATICFILES_DIRS setting should not contain the STATIC_ROOT se
阅读 18
2022-11-29
STATIC_ROOT = '/home/yanfriends_server/static/'
STATIC_URL = '/static/'
STATICFILES_DIRS = (os.path.join(BASE_DIR, "/static/"),)
此报错是因为settings中静态文件目录设置的有问题,看看和我的有设么区别,我就是因为少了一个“/”排查了半天。
相关推荐
精彩评论(0)