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

后端 未结 8 1844
忘了有多久
忘了有多久 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:56

    For me, I ran makemigrations for each of my INSTALLED_APPS with this command:

    python manage.py makemigrations compressor
    

    change compressor with your INSTALLED_APPS. then successfully migrated with this command:

    python manage.py migrate
    

提交回复
热议问题