Django : Migration Success But Not Creating New Table
I've been using django migration to handle database. recently, I split session into two, one is for reading and the other one is for writing. After done this, I made new migration
Solution 1:
If you use multiple DBs in Django, When migrating, you need to check the Database Router that you coded.
Check for "allow_migrate" method in your database router class.
This is official Django documentation about this issue.
https://docs.djangoproject.com/ko/1.11/topics/db/multi-db/#allow_migrate
Solution 2:
You should set database name to migrate others database:
./manage.py migrate --database=write
Post a Comment for "Django : Migration Success But Not Creating New Table"