实际上,我无法在迁移文件中正确导入Masonite的模型。我想创建预注册数据作为数据库种子。我该怎么做?
__init__.py 文件并将其放入其中:
__init__.py
import os import sys sys.path.append(os.getcwd())