python - Psycopg2 installation for OS X and Django -
i utilize postgresql
database django. first installed driver psycopg2
pip
, virtualenv
:
$ path=$path:/library/postgresql/9.3/bin/ $ pip install psycopg2 [...] installed psycopg2 cleaning up... $
i have done next configuration in django:
databases = { 'default': { 'engine': 'django.db.backends.postgresql_psycopg2', 'name': 'my_db', 'user': 'django', 'password': 'xx', 'host': 'localhost', 'port': '5432', } }
but when seek create schema syncdb
have next error:
$ python manage.py syncdb raise improperlyconfigured("error loading psycopg2 module: %s" % e) django.core.exceptions.improperlyconfigured: error loading psycopg2 module: dlopen([...]/code/env/dev/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): library not loaded: libssl.1.0.0.dylib referenced from: [...]code/env/dev/lib/python2.7/site-packages/psycopg2/_psycopg.so reason: image not found
do know why libssl
not loaded , how can prepare issue?
thank you
python django postgresql
No comments:
Post a Comment