Tuesday, 15 May 2012

Hook django up with postgresql using psycopg2 -


I am trying to hook up my website to use postgresql. I have installed postgresql and psycopg2 In Settings.py, I placed the following, and then found the error shown later. I should mention that I had tested the site with mysql before attempting to migrate to PostCarsil. DATABASES = {'default': {'ENGINE': 'Django.db.backends.postgresql_psycopg2', 'NAME': 'pdbt', 'USER': '' 'Password': '', 'HOST': 'localhost', 'port': '',}}

error:

  database entry / Viewer / relationship "django_session" does not exist Line 1: ... ession_data "," django_session "." Expir_date "FROM" django_se ...    

and if any , they should run this command:

  // Python for newer versions manage.py migrate // python manage.py syncdb    

No comments:

Post a Comment