Django: relation "django_site" does not exist

django, python

Solution

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

Problem

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?

Original source