我在wagtail网站上关注了Brent Clark。我试图在后端使用GraphQL和Python+Django添加wagtail cms到react应用程序中。当我尝试迁移时,我得到了这个错误:
RuntimeError: Model class wagtail.core.models.Site doesn't declare
an explicit app_label and isn't in an application in INSTALLED_APPSpip冻结提供:
aniso8601==3.0.2
beautifulsoup4==4.6.3
certifi==2018.8.13
chardet==3.0.4
Django==2.0.8
django-modelcluster==4.2
django-taggit==0.23.0
django-treebeard==4.3
django-webpack-loader==0.6.0
djangorestframework==3.8.2
draftjs-exporter==2.1.2
graphene==2.1.3
graphene-django==2.1.0
graphql-core==2.1
graphql-relay==0.4.5
html5lib==1.0.1
idna==2.7
iso8601==0.1.12
Pillow==5.2.0
promise==2.1
psycopg2==2.7.5
pytz==2018.5
requests==2.19.1
Rx==1.6.1
singledispatch==3.4.0.3
six==1.11.0
typing==3.6.4
Unidecode==0.4.21
urllib3==1.23
wagtail==2.1.2
webencodings==0.5.1
Willow==1.1 发布于 2018-08-23 11:51:07
看起来你没有在你的settings.py文件中安装应用程序。
您需要将以下内容添加到设置“INSTALLED_APPS”中:
INSTALLED_APPS = [
...
'django.contrib.sites',
]此外,您还需要添加正在配置的站点的ID:
SITE_ID = 1https://stackoverflow.com/questions/51977957
复制相似问题