📚 [Python3]CommandError: App ''xxxx'' has migrations.Only the sqlmigrate and sqlflush commands can be used when an app has migrations.

Category: Python3 | 📅 July 07, 2015

에러 메시지

CommandError: App '[app-name]' has migrations.
Only the sqlmigrate and sqlflush commands can be used when an app has migrations.

app 디렉토리 내의 migration 디렉토리를 삭제한다.

ex) app 이 gyu7e인 경우,

cd gyu7e
rm -rf migrations
python manage.py sqlcear gyu7e
python manage.py sql gyu7e
python manage.py syncdb
🏷️ Tags
  • #Python3