- django-project/
migrations/
app1/
.../
src/
app1/
.../
config/
...
settings.py
how to set the path in MIGRATION_MODULES in settings.py to make generated migration files appear in migrations/app1/ folder?
I have tried MIGRATION_MODULES = {'app1': '..migrations.app1.db_migrations'} but got errors.
- Is not it a bad practice to move migration files from default location?
To move the migration files outside of your Django project, you can do the following: