python manage.py makemigrations报一下错误:

python: can't open file 'manage.py': [Errno 2] No such file or directory

问题原因,由于打开的目录文件不是我们的工程目录,例如:

python: can't open file 'manage.py': [Errno 2] No such file or directory

解决方式1:重新打开该项目,使得根目录为工程目录

python: can't open file 'manage.py': [Errno 2] No such file or directory

解决方式二:终端使用cd 进入工程目录:

python: can't open file 'manage.py': [Errno 2] No such file or directory

相关文章: