When running aerich init and aerich init-db, it's useful to auto create intermediate directories if not exist (same as POSIX mkdir -p).
The reason behind this is that I always have to manually run mkdir migrations before aerich init-db when I need to reset database/migrations. Or else, FileNotFoundError: [Errno 2] No such file or directory: 'migrations/models' is thrown.
When running
aerich init
andaerich init-db
, it's useful to auto create intermediate directories if not exist (same as POSIXmkdir -p
). The reason behind this is that I always have to manually runmkdir migrations
beforeaerich init-db
when I need to reset database/migrations. Or else,FileNotFoundError: [Errno 2] No such file or directory: 'migrations/models'
is thrown.