doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

Posted crave

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.相关的知识,希望对你有一定的参考价值。

在settings.py中增加

INSTALLED_APPS = [
    ...
    django.contrib.sites,
]

问题就解决了。什么原因。——不知道。。

 

以上是关于doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.的主要内容,如果未能解决你的问题,请参考以下文章

报错RuntimeError: Model class apps.user.models.User doesn't declare an explicit app_label and isn&

django启动服务时报错:RuntimeError: Model class index.models.User doesn't declare an explicit app_label

更新Navicat Premium 后打开数据库出现1146 - Table 'performance_schema.session_variables' doesn't ex

Python 文件操作Error: binary mode doesn't take an encoding argument

Make jQuery throw error when it doesn't match an element

'mysql.column_stats' doesn't exist and Table 'mysql.index_stats' doesn't exi