Python full stack (ten) Django framework 11. ORM migration, request restriction and redirection

1. ORM migration command

Previously, after the model was established, the model migration was carried out, that is, makemigrationsand migratenow we will explain it further.

1.makemigrations

Used to generate a migration script for the model .
The app where the model is located must be placed in settings.py

Guess you like

Origin blog.csdn.net/CUFEECR/article/details/108783924