DEV Community

Discussion on: Django: Migrate --fake-initial gotchas

 
a3n3d3i profile image
Andi

In case you do some manual modifications to your database and want the django migrations to "think it did it" you could fake the specific migration by using the "python manage.py migrate --fake yourAppName 00nn_migration_number" command.
This will mark the migrations as applied without modifying the database tables field.