South migrate error - relation already exists

后端 未结 3 616
别跟我提以往
别跟我提以往 2021-01-11 12:04

Background: After adding djangoratings to my project, I tried running

django-admin.py schemamigration djangoratings --initial 
--settings=myapp.settings.loc         


        
3条回答
  •  清酒与你
    2021-01-11 12:39

    there is a better way to solve it:

    python manage.py migrate djangoratings --fake
    

    and then:

    python manage.py migrate
    

提交回复
热议问题