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

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

    1- run python manage.py makemigrations

    2- run python manage.py sqlmigrate - you will find migrationname in migration folder under appname (without '.py' extension of course)

    3- copy all text of result # all sql commands that generated
    4- go to your db ide and paste as new query and run it

    now all changes are applied on your db

提交回复
热议问题