Error creating new content types. Please make sure contenttypes is migrated before trying to migrate apps individually

后端 未结 6 1567
星月不相逢
星月不相逢 2020-12-09 07:40

I am trying to migrate from Django 1.6 to Django 1.8. I was using South for managing migrations in Django 1.6. I have suc

6条回答
  •  攒了一身酷
    2020-12-09 08:16

    To add to comment by @int_ua Add this as a dependency to the migration that is failing:

    dependencies = [
        ('contenttypes', '0002_remove_content_type_name'),
    ]
    

    Then run migration again.

提交回复
热议问题