Django South - table already exists

前端 未结 8 583
名媛妹妹
名媛妹妹 2020-12-02 03:55

I am trying to get started with South. I had an existing database and I added South (syncdb, schemamigration --initial).

Then, I updated <

8条回答
  •  -上瘾入骨i
    2020-12-02 04:13

    since you already have the tables created in the database, you just need to run the initial migration as fake

    ./manage.py migrate myapp --fake
    

    make sure that the schema of models is same as schema of tables in database.

提交回复
热议问题