Django: relation “django_site” does not exist

前端 未结 10 1454
北荒
北荒 2020-12-05 10:30

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:

10条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 11:06

    A horrible code lead to this error for me. I had a global variable to get the current site

    SITE = Site.objects.get(pk=1)

    this was evaluated during migration and lead to the error.

提交回复
热议问题