Configuration
Settings
This package requires all local Django apps to be inside a single directory. This directory needs to be defined in the main django settings.
Usually, you can use the BASE_DIR
variable from Django’s default setup and add a path.
Note that this variable has to be of type pathlib.Path
.
MIGRATION_ZERO_APPS_DIR = BASE_DIR / "apps"
Logging
The scripts are quite chatty. If you want to see what’s going on under the hood, just configure a quite default-looking logger in your Django settings.
Note, that in this example, we are only logging to the console.
LOGGING = {
"loggers": {
"django_migration_zero": {
"handlers": ["console"],
"level": "INFO",
"propagate": True,
},
...
},
}