python - Django Migrations - how to insert just one model? -
i made mess in local django project , realized somehow i'm out of sync migrations. tried apply initial
, realized of tables exist, tried --fake
. made migration pass, i'm missing 1 table wanted add... how can prepare migration 1 model or make django re-discover database missing , create that?
i using models
directory. adding import of model __init__.py
allowed me control whether it's visible makemigrations or not. found using strace
.
Comments
Post a Comment