This is a step by step tip about how to install Django with PostgreSQL on Windows. The links below point directly to the downloads, so the whole procedure should be extremely fast and easy.
Extract win-psycopg25.zip
and copy libpq.dll and psycopg.pyd to c:\python25\DLLs (assuming c:\python25 is where you installed Python).
You can test that the installation was successful by firing up python and trying: import psycopg. If you are not prompted with an error message, it simply worked.
Get Django 0.95 and uncrompress the tar.gz file. If you have problems with this, please use 7-Zip.
If you don’t have setuptools already installed, the Django installation will download and install it for you.
However the version that Django will attempt to download doesn’t exist on the server,
therefore we need to specify a different one (the latest).
Open, in your favourite editor, ez_setup.py located within the Django folder that you just uncompressed,
and replace the line:
DEFAULT_VERSION = “0.6c1”
with
DEFAULT_VERSION = “0.6c3”
Now, if the Windows box you’re using has an Internet connection, you’re settle; otherwise just download this file manually into the Django folder.
At this point, open a command prompt and run:
python setup.py install
NOTE: While it is not reccomended, if you wish to use Psycopg2 for some reason, you can skip steps 3 and 4, and use this installer instead.
Then you will need to specify in settings.py: DATABASE_ENGINE = ‘postgresql_psycopg2’ rather than ’postgresql’.