- django.db.Migrations.state.InvalidBaseError
- psycopg2.programingerror "foo" relation dose not exit
One of these error messages might happen while I migrating a Django project with many Apps.
The second error happened if I used PostgreSQL.
A work around for this annoyance is to employ a two-phase migration.
First, comment out Apps in settings.py, but leave Django's Apps alone. Run './manage.py migrate'
Then, uncomment Apps, migrate again.
沒有留言:
張貼留言