I am having some trouble with migrating Django using postgresql.
This is my first time with Django, and I am just following the tutorial.
As suggested on the
It must be because you are installing psycopg2 in your system level python installation not in your virtualenv.
sudo apt-get install python-psycopg2
will install it in your system level python installation.
You can install it in your virtualenv by
pip install psycopg2
after activating your virtualenv or you can create your virtualenv with --system-site-packages
flag so that your virtualenv will have packages in your system level python already available.
virtualenv --system-site-packages test
where test
is your virtualenv.