I'm having difficulty getting my Django tests to work properly; I use the nose, and I began to receive an error message when applying migrations, as from table 1 the relation of the foreign key to table 2 did not succeed with the error:
django.db.utils.DatabaseError: relation "table2_column" does not exist
After seeing how the migrations were applied, it was clear to me that table1 was not created before the foreign key relationship was applied, so I tried to figure out how to force the dependency and found the following article: http://south.aeracode.org/docs /dependencies.html
Then I added:
depends_on = ( ("app2", "0001_inital"), )
to the app1 / 0001_initial.py file.
Unfortunately, now I get the following error:
south.exceptions.DependsOnUnknownMigrationMigration 'app1:0001_initial' depends on unknown migration 'app2:0001_inital'.
Any ideas on how to solve this?
django migration django-south nose
Simon
source share