Django column “name” of relation “django_content_type” does not exist

后端 未结 8 1834
忘了有多久
忘了有多久 2020-12-23 14:31

I keep getting the following error when doing a migration (python manage.py migrate):

django.db.utils.ProgrammingError: column \"name\" of relation \"django_         


        
8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-23 14:57

    I had the same problem but I was able to solve it by adding this into my migration dependencies:

    ('contenttypes', '0002_remove_content_type_name')
    

    Hope it helps!

提交回复
热议问题