我在 python 中收到 STATICFILE DIR 错误

I am getting a error of STATICFILE DIR in python

警告: ?: (staticfiles.W004) STATICFILES_DIRS 设置中的目录 'E:\Python Practice\Django\userproject\static' 不存在。

系统检查发现 1 个问题(0 个已解决)。

您需要编写静态文件目录来为 settings.py 文件中的静态内容提供服务:

STATICFILES_DIRS = [os.path.join(BASE_DIR, "静态")]

希望对你有用。