Django:关系“django_site”不存在 [英] Django: relation "django_site" does not exist
问题描述
< blockquote>
关系django_site不存在LINE 1:
...django_site。domain,django_site。nameFROMdjango_si ...
我不太确定这里出了什么问题,我做了一些研究,并添加了'django.contrib.sites' ,
我最近遇到了这个问题(Django 1.8.7),即使在我的设置中, SITE_ID = 1
在任何其他迁移之前手动迁移网站
应用程序:
./管理.py迁移站点
./manage.py migrate
I am running a test django server on aws and I just installed django-userena and when I try to signup a user upon clicking submit, I get the following message:
relation "django_site" does not exist LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
I am not really sure what went wrong here. I did some researching and added " 'django.contrib.sites',"
to my installed apps, but I am still getting the error. I will there is an extra step I am missing. Any suggestions or advice?
I recently ran into this issue (Django 1.8.7) even with SITE_ID = 1
in my settings. I had to manually migrate the sites
app before any other migrations:
./manage.py migrate sites
./manage.py migrate
这篇关于Django:关系“django_site”不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!