I have an existing database filled with a bunch of data. I want to migrate to Django so I went ahead and created the necessary models with python manage.py inspectdb
. I haven't changed anything besides removed the managed = False
since I want Django to manage the tables (mistake perhaps for initial migration?).
So now that the models are ready, how can I generate the first migration file so that I can start changing the fields to generate additional migrations (renaming a field here and there). I understand python manage.py migrate
will handle the creation of Django-specific models but does not actually create any migration files? Some sources indicate the first migration file should be run with --fake
so it's not applied. Will the next migration files remember to run the first one as fake and only apply the next ones?