I am using this popular tutorial to deploy a django app on AWS EB. https://realpython.com/blog/python/deploying-a-django-app-to-aws-elastic-beanstalk/
After deploying I am getting the following error:
ProgrammingError at /accounts/login/
relation "django_site" does not exist
LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
Fixes others have suggested that I have done:
- I have 'django.contrib.sites' in my installed apps (settings.py)
- I have SITE_ID = 1 in settings
Some are suggesting that you run manage.py migrate sites before migrating the rest of the tables.
Does anyone know how to do that on an AWS instance? I SSH'd in and that command won't run.
Any help would be very much appreciated. I've been battling AWS Elastic Beanstalk for a week now.