RuntimeError: Model class apps.storm.models.BigCategory doesn't declare an explicit app_label and...

Django runserver时报错

RuntimeError: Model class apps.storm.models.BigCategory doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS

解决方案:

使用users.models的导入方式

修改前:

from .models import Article, BigCategory, Category, Tag

修改后:

from storm.models import Article, BigCategory, Category, Tag

运行成功

你可能感兴趣的:(RuntimeError: Model class apps.storm.models.BigCategory doesn't declare an explicit app_label and...)