After successfully installing Django and the EnterpriseDB version of PostgreSQL, I needed to successfully install the PostgreSQL adapter for Python (psycopg2) before I can successfully start Django’s development testing web server. After significant research, here are the two errors encountered and subsequent resolutions I was able to find.
Command: pip install psycopg2
Error: pg_config executable not found.
Solution: Enter “PATH=$PATH:/Library/PostgreSQL/9.3/bin” in Terminal and re-execute the install command
Command: python manage.py runserver
Error: Library not loaded: libssl.1.0.0.dylib Reason: image not found
Solution: Enter “export DYLD_LIBRARY_PATH=/Library/PostgreSQL/9.*/lib” in Terminal and re-execute the runserver comment