1
votes

Have installed south to my old django project.

Have run.

¤ syncdb

¤ convert_to_south myappName

But the did not sync all.

Runned:

¤ Migrate myappNAme

Did not sync 100 %, still have one column that is not found.

Runned:

¤ schemamigration -auto myappName

But not synced to 100 %....

Any ideas?

1

1 Answers

0
votes

Suppose, that your old project's models definition are consistent with database. And you want to edit some model(s) in app named 'myappName'. Then your algorithm will be following:

  1. Before making any changes to you model, do:

    python manage.py convert_to_south myappName

  2. Modify model(s) in app 'myappName'.

  3. Create migrations:

    python manage.py schemamigration myappName --auto

  4. Apply migrations:

    python manage.py migrate myappName