2016-12-28 4 views
0

Der folgende Fehler beim Verwenden von django-contact-form. Ich installierte es pip verwenden, erstellt die Vorlagen, die E-Mail-Setup, schrieb die url(r'^contact/', include('contact_form.urls')) und bekam folgende Fehlermeldung:django-contact-form Standortmodellfehler

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.  
+0

Welche Django-Version verwenden Sie? – ettanany

Antwort

1

Es scheint, dass Sie 'django.contrib.sites' zu INSTALLED_APPS in Ihrer setting.py Datei hinzufügen müssen. Überprüfen Sie Enabling the sites framework

+0

Es hat funktioniert! Danke vielmals. –