According to [1]
"""
[automatically loading initial data via fixtures is d]eprecated since
version 1.7: If an application uses migrations, there is no automatic
loading of fixtures. Since migrations will be required for
applications in Django 1.9, this behavior is considered deprecated.
If you want to load initial data for an app, consider doing it in a
migration.
"""
However, the docs don't link to how that data should be furnished to
the migration. As best I can tell from reading[2], it sounds like
one needs to create a Python function that creates & saves the data,
and then provide that function to migrations.RunPython to be
executed. Is this correct, or is there some easier way to provide
that initial data to an app?
Thanks,
-tkc
[1]
https://docs.djangoproject.com/en/dev/howto/initial-data/#automatically-loading-initial-data-fixtures
[2]
https://docs.djangoproject.com/en/dev/topics/migrations/