Configuration¶
These are the available settings.
All attributes prefixed REMAKE_MIGRATIONS_*
can be overridden from your Django
project’s settings module by defining a setting with the same name.
For instance, to run showmigrations
and migrate
after remaking,
add the following to your project settings:
REMAKE_MIGRATIONS_POST_COMMANDS = [
["showmigrations"],
["migrate"],
]
- class django_remake_migrations.conf.AppSettings¶
Access this instance as django_remake_migrations.conf.app_settings.
- REMAKE_MIGRATIONS_FIRST_APPS: Sequence[str] = ()¶
The apps for which to make migrations first.
- REMAKE_MIGRATIONS_LAST_APPS: Sequence[str] = ()¶
The apps for which to make migrations last.
- REMAKE_MIGRATIONS_POST_COMMANDS: Sequence[Sequence[str]] = ()¶
Some commands with arguments to run after generating the new migration.