使用別人的代碼叉子,我增加了一個模式場,做一般的自動遷移: ~ $ django_admin.py migrate mezzanine_slides --auto
You cannot use automatic detection, since the previous migration does not have this whole app frozen.
Either make mi
我在我的應用中添加了一個Target模型,該模型通過一對一字段標記Revision對象(從django-reversion)。標籤取決於版本集中的對象,如果這些對象中的任何一個需要標籤,則應該爲整個版本設置標籤。我試圖使用django-south數據遷移遍歷數據庫中所有的Revision對象,檢查關聯的version_set中的每個對象,並在必要時設置標記。 class Migration(Dat
我想我的應用「落地」遷移以南我寫了下面的命令 python manage.py migrate landing ,但它顯示了以下錯誤 Running migrations for landing: Migrating forwards to 0003_auto__chg_field_userinput_email2. landing:0001_initial FATAL ERROR - The f
我正在執行向我的自定義用戶模型添加引薦代碼的遷移。我已經添加了場看起來是這樣的: refer_code = models.CharField(max_length=10, default=UUID_10)
在我datamigration我已經添加了以下內容: for u in orm['app.User'].objects.all():
u.refer_code = UUID_10(