Django: relation “django_site” does not exist

前端 未结 10 1410
北荒
北荒 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:10

    I got this error while working with django-cookiecutter, django-allauth and django-rest-auth

    I literally spent 5 hours pulling my hair out. Eventually gave in and started to comment out bit by bit

    What worked for me was commenting out both pre-configured url paths (they come with cookiecutter Django):

    # User management
    path("users/", include("yourapp.users.urls")),
    path("accounts/", include("allauth.urls")),
    

    After that migrations worked.

    I uncommented it and my app has worked ever since. It was only for the initial migration

    Hope it helps someone!

提交回复
热议问题