📜  迁移数据 django - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:25.148000             🧑  作者: Mango

代码示例2
#record latest model before migration
python3 manage.py makemigrations [app_name]

#migrate to database
python3 manage.py migrate

# configure your database first before migrating default database will be sqlite3