By Antonio Cangiano. Filed under Django, Quick Tips
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.
Run: Alternatively if you wish to install setuptools and Django in one step, open in your favorite 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.
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.
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).
python ez_setup.py -U setuptools
within the Django directory and this will install the latest setuptools for you. You can now go to step 7.
python setup.py install
| How to Connect to a Samba share from OS X< Prev | Next >How to Install Lighttpd with PHP5 and MySQL on Ubuntu 9.10 |
|---|


