新加一个APP,blogs,运行后出现错误
RuntimeError: Model class blog.models.Category doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
查找后发现,Category并没有冲突,仔细检查后发现是因为‘blog’没有在settings里的
INSTALLED_APPS 注册所致。
新加一个APP,blogs,运行后出现错误
RuntimeError: Model class blog.models.Category doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
查找后发现,Category并没有冲突,仔细检查后发现是因为‘blog’没有在settings里的
INSTALLED_APPS 注册所致。