0
嘗試使用django-contact-form
時出現以下錯誤。 我安裝了它使用pip
,創建模板,設置電子郵件,寫了url(r'^contact/', include('contact_form.urls'))
,並得到了以下錯誤:django-contact-form網站模型錯誤
Unhandled exception in thread started by <function check_errors.locals>.wrapper at 0x00000000048107B8>
File "C:\Users\Caio\Documents\Projects\JCC\venv\lib\site-packages\django\db\models\base.py", line 113, in __new__
"INSTALLED_APPS." % (module, name)
RuntimeError: Model class django.contrib.sites.models.Site doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
您正在使用哪個django版本? – ettanany