收起
在settings.py中增加
INSTALLED_APPS = [ ... 'django.contrib.sites', ]
详细可以观看这里: https://stackoverflow.com/questions/35388637/runtimeerror-model-class-django-contrib-sites-models-site-doesnt-declare-an-ex
报告相同问题?