본문 바로가기

web/Django

django.db.utils.IntegrityError: Can't DROP 'XXXX'; check that column/key exists



if you see the to error that 'django.db.utils.IntegrityError: Can't DROP 'XXXX'; check that column/key exists'


you must migrate that colum to remove.

and one more migrate that colum to insert than have migrate option to '--fake'

$ python ./manage.py migrate YOUR_APP --fake


than table is worked to normal behavior.




'web > Django' 카테고리의 다른 글