For my own reference. django 1.4 + python 2.7
Apparently if you want to connect to postgres in your django application, it doesn't work right out of the box. You need to install the connection driver layer psycopg2 yourself.
sudo apt-get install python-dev postgresql-server-dev-all
sudo pip install psycopg2
then in your settings file, change your ENGINE to:
'django.db.backends.postgres_psycopg2'
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment