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

后端 未结 15 1570
离开以前
离开以前 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:45

    python manage.py migrate --fake APPNAME zero
    

    This will make your migration to fake. Now you can run the migrate script

    python manage.py migrate APPNAME
    

    Tables will be created and you solved your problem.. Cheers!!!

提交回复
热议问题