Open boziyoung opened 1 year ago
Try "app.models.base" --> "app.models"
"apps":{
# 模型文件,数控库 ,实例化链接
# aerich 是 tortoise orm 自己的数据库 迁移工具
"english_notes":{"models": ["app.models", "aerich.models"], "default_connection": "english_notes"}
},
Describe the bug when i changed my models.py , added some new model classes , and then i excuted aerich migrate ,raiseed a "ConfigurationError" ; i decided delete all files under the migrations path , tried to excute "aerich init-db" raised same error : "ConfigurationError"
detailed error: Traceback (most recent call last): File "/home/ubuntu/english/env/lib/python3.11/site-packages/tortoise/init.py", line 119, in get_related_model return cls.apps[related_app_name][related_model_name]