python manage.py makemigrations display can not open file 'manage.py' connection to the database in the django: [Errno 2] No such file or directory

 Solution:

1. We can set up the header fields:

 

 2. Then in the terminal in makemigrations:

 

3. Then enter migrate:

 

 4. Then go to the database to view the table information generated:

 There are several online is off to solve the above problems, but I did not understand that process, they said, feeling a mess, I chose another way to achieve initialize the database, I hope you have a good solution in the future, what message

Guess you like

Origin www.cnblogs.com/Zhao159461/p/11527734.html