Django and read-only database connections

后端 未结 3 1620
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-30 14:39

Assume a Django application which is supposed to use two MySQL databases:

  • default - for storing data represented by models A and B<
3条回答
  •  粉色の甜心
    2021-01-30 15:06

    Had the same problem. Django is trying to create the 'django_migrations' table in all DBs. This happens even if there are no models associated with the read-only DB and all routers are pointing a different DB.

    I also ended up using peewee.

提交回复
热议问题