在django中连接数据库时python manage.py makemigrations时显示can't open file 'manage.py':[Errno 2] No such file or directory

 解决方法:

1.我们可以在表头栏设置:

在django中连接数据库时python manage.py makemigrations时显示can't open file 'manage.py':[Errno 2] No such file or directory

 

 2.然后在terminal中makemigrations:

在django中连接数据库时python manage.py makemigrations时显示can't open file 'manage.py':[Errno 2] No such file or directory

 

3. 然后再输入migrate:

在django中连接数据库时python manage.py makemigrations时显示can't open file 'manage.py':[Errno 2] No such file or directory

 

 4.然后再去数据库查看生成的表信息:

在django中连接数据库时python manage.py makemigrations时显示can't open file 'manage.py':[Errno 2] No such file or directory

 在网上有几个是关机解决上述问题的方法,但是本人没处理明白,感觉他们说的乱七八糟的,我选择了另一种方式实现数据库的初始化,希望大家日后有好的解决办法,留言一下