ERRORS: ?: (staticfiles.E001) The STATICFILES_DIRS setting is not a tuple or list. HINT: Per

在写djiango时遇到的问题

实际情况如下ERRORS: ?: (staticfiles.E001) The STATICFILES_DIRS setting is not a tuple or list. HINT: Per

看errors后面的内容,

ERRORS:


?: (staticfiles.E001) The STATICFILES_DIRS setting is not a tuple or list.说我设置的不是一个元组或列表
        HINT: Perhaps you forgot a trailing comma?或许你忘了一个逗号,

对的, 再给STATICFILES_DIRS设置静态文件目录的时候注意设置的目录是个列表或元组,其中每个元组或列表的值之间必须要用逗号分隔

ERRORS: ?: (staticfiles.E001) The STATICFILES_DIRS setting is not a tuple or list. HINT: Per

即使是最后一个值的后面也要加逗号