- Mac OSX 10.8
- Python 2.7 (installed with homebrew)
- PostgreSQL 9.4 (installed with homebrew)
- psycopg2 2.5 (installed with macports)
- Django 1.0.4 (installed with homebrew)
I'm using this tutorial and currently trying to configure a database. I edited my settings.py
file to reflect the fact that I'm using postgreSQL with psycopg2, but I keep getting this same error, even after I uninstalled and reinstalled django, python, postgreSQL and psycopg2.
From within the mysite directory (created by django), I ranpython manage.py shell
and terminal printed a bunch of stuff but at the end:
File "/usr/local/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 20, in <module>
raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named psycopg2
So I'm guessing the issue is that (django? python?) can't find my psycopg2. As I said I'm pretty new so I'm not all that comfortable messing around with the PATH but if that is the issue could someone walk me through it?