1. Create an app, python manage.py startapp appname
2. Design the model, edit the model in the appname/ directory
3. Detect the modification of the model, python manage.py makemigrations appname
4. Automatically execute the database Migrate and synchronously manage the database structure, python manage.py sqlmigrate 0001
5. Create a data table of the newly defined model in the database python manage.py migrate
Steps to change the model:
python manage.py makemigrations
to generate migration files for model changes. python manage.py migrate
to apply database migration. The above introduces Django entry record 2, including Django content. I hope it will be helpful to friends who are interested in PHP tutorials.