ERRORS: ?: (staticfiles.E002) The STATICFILES_DIRS setting should not contain the STATIC_ROOT settin

ERRORS: ?: (staticfiles.E002) The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting.

错误原因有可能是在settings中静态文件目录设置的有问题
尝试按照下面配置

STATIC_ROOT=os.path.join(BASE_DIR,“static/”)	# 错误
STATIC_ROOT=os.path.join(BASE_DIR,"/static/")	# 正确

你可能感兴趣的:(Django2.0,python,bug,django)