I am trying to connect my site before using postgresql. I installed postgresql and psycopg2. In settings.py, I posted the following and then got an error after that. I should mention that I tested the site using mysql before trying to switch to postresql.
from Settings.py:
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'pdbt', 'USER': '', 'PASSWORD': '', 'HOST': 'localhost', 'PORT': '', } }
Error:
DatabaseError at /viewer/ relation "django_session" does not exist LINE 1: ...ession_data", "django_session"."expire_date" FROM "django_se...
source share