본문 바로가기

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' 카테고리의 다른 글

django ajax post data and view.py  (0) 2014.11.08
uwsgi logger disable option  (0) 2014.10.24
django.db.utils.IntegrityError: Unknown table  (0) 2014.10.21
django ie8 / ie9 json save as problem  (0) 2014.10.01
django template if equal  (0) 2014.09.30