1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| source ~/Venv/bin/activate pip install south cd [project] vim settings.py INSTALLED_APPS 增加 south
# 用於建立 south 的表 python manage.py syncdb
# 將已經存在的 app 轉換為 south 管理 python manage.py convert_to_south [app name]
# 取得對資料庫的更改 python manage.py schemamigration [app name] --auto
# 將更改後的資訊反應到資料庫 python manage.py migrate [app name]
|