我一直在通过 yourube 视频学习 Django,我到了必须创建迁移的时刻,我完全按照视频中的方式进行操作,但我收到了这条警告消息:
WARNINGS:
?: (staticfiles.W004) The directory '/var/www/static/' in the STATICFILES_DIRS setting does not exist.
No changes detected
并且没有创建迁移,我试图用谷歌搜索这个问题,但那是没用的
一开始我有两个问题:
WARNINGS:
?: (staticfiles.W004) The directory '/var/www/static/' in the STATICFILES_DIRS setting does not exist.
?: (staticfiles.W004) The directory 'D:\PythonProjects\Projects\start\static' in the STATICFILES_DIRS setting does not exist.
我通过在项目的主文件夹中创建一个名为“static”的文件夹解决了第二个问题,但第二个问题仍未解决(