PYTHON
[Django] InconsistentMigrationHistory 오류
milna
2023. 10. 24. 20:37

구글 연동을 위해 allauth 설치 후 settings.py 에서 'django.contrib.sites' 를 나중에 추가한 뒤 migrate하자,
InconsistentMigrationHistory 오류가 발생했다.
setting.py
'django.contrib.sites',
'allauth',
# 'allauth.account',
'allauth.socialaccount',
'allauth.socialaccount.providers.google',
문제가 된 'allauth.account' 를 커맨드아웃(#) 시킨 뒤 migrate하니 해결되었다.
오류 해결 후 #를 지우고 계속 진행한다.