解决RuntimeError: Model class apps.books.models.Book doesn’t declare an explicit app_label and isn’t in an application in INSTALLED_APPS
首先apps是mark directory as source root
INSTALLED_APPS也注册了子应用
需要把设计books导入地方的apps.删掉就不会报错了
解决RuntimeError: Model class apps.books.models.Book doesn’t declare an explicit app_label and isn’t in an application in INSTALLED_APPS
首先apps是mark directory as source root
INSTALLED_APPS也注册了子应用
需要把设计books导入地方的apps.删掉就不会报错了