-错误提示:Model class book.models.BookType doesn’t declare an explicit app_label
问题在设置apps.py 里,属于路径设置问题
错误代码:
class BookConfig(AppConfig):
name = 'apps.book'
verbose_name = "图书模块"
应该改为:
class BookConfig(AppConfig):
name = 'book'
verbose_name = "图书模块"