Because mongoengine_migrate makemigrations is used in the scope of the current project (directory) it would make sense to add the current directory (.) to the PYTHONPATH. Otherwise I always get the error
mongoengine_migrate makemigrations -m models.data
...
ModuleNotFoundError: No module named 'models'
Because mongoengine_migrate makemigrations is used in the scope of the current project (directory) it would make sense to add the current directory (
.
) to the PYTHONPATH. Otherwise I always get the errorAs a workaround I call it like this