title: Django: psycopg2 import error
body: <p>I was having a very weird bug when trying to run migrations in my freshly installed Django app and narrowed it down to the module imports. I found out <code>django.db.backends.postgresql_psycopg2.base</code> wasn't being imported so I checked my <code>pyscopg2</code> installation by going to the Python console and trying <code>import psycopg2</code>.</p>
  
  <p>Indeed there was an error with this module:</p>
  
  <pre><code>from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
  ImportError: DLL failed: The specified module could not be found.
  </code></pre>
  
  <p>I tried uninstalling <code>psycopg2</code> with <code>pip</code> and installing it again, and several different versions, but I always got the same error.</p>
  
  <p>I installed <code>win-psycopg</code>(<code>psycopg2-2.6.2.win-amd64-py2.7-pg9.5.3-release.exe</code>) from <a href="http://www.stickpeople.com/projects/python/win-psycopg/" rel="nofollow">here</a>.</p>
  
  <p>I am using Django 1.4.22, Python 2.7.8 64 bits and Windows 7 64 bits.</p>