Django 1.7 - “No migrations to apply” when run migrate after makemigrations

后端 未结 15 1551
离开以前
离开以前 2020-11-28 20:46

I use Django1.7 with Mezzanine. I create simple profile (according to Mezzanine documentation) stored in separate app \"profiles\":

class RoadmapProfile(mode         


        
15条回答
  •  独厮守ぢ
    2020-11-28 21:49

    1. In MySQL Database delete row 'profiles' from the table 'django_migrations'.
    2. Delete all migration files in migrations folder.
    3. Try again python manage.py makemigrations and python manage.py migrate command.

提交回复
热议问题