[ad_1]
I'm in the process of upgrading an old project from Django 1.5 to the latest version (Django 1.11).
I understand the process of upgrading from South for the migrations and, in general, this has worked fine. However, I'm having some problems with a particualr 3rd party app - Django Fluent Pages - whose version I had to upgrade to get the project working.
Their initial (non-South) migration contains CreateModel instructions for models that I already have in the database as well as models that they have added between the version I had and the version I've upgraded to.
That means that Django tries to actually run this migration (to create the new tables) when I migrate my db but some of the tables in the migration already exists and it fails.
How do I get round this? I'm using the --fake-initial argument on my migration. The problem seems to be the fluent pages initial migration file. Should that only contain the models that their initial South migration had in it? Or have I done something wrong?
Surely I don't have to migrate through every single intermediate version of their app to make this work?!
[ad_2]
لینک منبع