Running on MAC os 10.6.8 with postgresSQL installed, as well django - using python2.7 Also installed psycopg2 and dj-database-url using pip in my virtual env And added these two lines to my setting.py:
import dj_database_url
DATABASES = {'default': dj_database_url.config(default='postgres://localhost')}
Based on instructions for Heroku in: https://devcenter.heroku.com/articles/django#database_settings When running:
python manage.py runserver
I am getting this error:
ImportError: dlopen(/Users.... venv/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): Symbol not found: _PQbackendPID
Referenced from: /Users.... venv/lib/python2.7/site-packages/psycopg2/_psycopg.so
Expected in: dynamic lookup
I kept searching for hours and tried all kind of thing including the advice on: Mac OS X Lion Psycopg2: Symbol not found: _PQbackendPID to no avail.
Wonder if anyone had such an issue and had any luck.