1👍
✅
After you run that command, followed by ./manage.py migrate avatar
the migration will be written to /migrations/0001_initial.py
and to a table in your DB. For MySQL it’s south_migrationhistory
.
As for deployment, my preference is to run the south schemamigration
and migrate
commands on production. And to keep the local migrations
directory off production.
I do this because I usually perform more migrations in development, and (until 1.7, anyway) that directory can get rather unwieldy.
Source:stackexchange.com