I just made a mess in my local Django project and realized that somehow I'm out of sync with my migrations. I tried to apply initial
and realized that some of the tables already exist, so I tried --fake
. This made the migration pass, but now I'm missing the one table I just wanted to add... how can I prepare migration just for one model or make Django re-discover what my database is missing and create that?
Asked
Active
Viewed 1,012 times
0

d33tah
- 10,999
- 13
- 68
- 158
1 Answers
0
I was using a models
directory. Adding an import of the model to __init__.py
allowed me to control whether it's visible to makemigrations or not. I found that using strace
.

d33tah
- 10,999
- 13
- 68
- 158