RuntimeError: Model class django.contrib.sites.models.Site doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS

后端 未结 5 1866
情书的邮戳
情书的邮戳 2020-12-05 03:52

I am building an application with Django Rest Framework and AngularJs. I am using Django-rest-auth for my authentication purposes, although, I have not been able to set it u

5条回答
  •  孤街浪徒
    2020-12-05 04:34

    Just add 'django.contrib.sites', to INSTALLED_APPS and set SITE_ID = 1 in your settings.py file.

提交回复
热议问题