Django: ERRORS: ?: (staticfiles.E001) The STATICFILES_DIRS setting is not a tuple or list. HINT: Perhaps you forgot a trailing comma?
必须是数组或者列表类型
如下所示:
# 错误
# STATICFILES_DIRS = { # os.path.join(BASE_DIR, 'static'), # }
# 正确 STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static'), ]
学以致用,知行合一