The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
A step by step guide on how to install Django with PostgreSQL on Windows

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Antonio Cangiano

Posts: 333
Nickname: acangiano
Registered: Dec, 2005

Antonio Cangiano is a Ruby hacker
A step by step guide on how to install Django with PostgreSQL on Windows Posted: Oct 7, 2006 4:49 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Antonio Cangiano.
Original Post: A step by step guide on how to install Django with PostgreSQL on Windows
Feed Title: Zen and the Art of Ruby Programming
Feed URL: http://programmingzen.com/category/ruby/feed/
Feed Description: Antonio Cangiano's blog about Ruby development.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Antonio Cangiano
Latest Posts From Zen and the Art of Ruby Programming

Advertisement

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.

  1. Install Python 2.5
  2. Install PostgreSQL 8.1.4
  3. Install the eGenix MX Base package
  4. 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.
  5. Get Django 0.95 and uncrompress the tar.gz file. If you have problems with this, please use 7-Zip.
  6. 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.

  7. 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’.

Read: A step by step guide on how to install Django with PostgreSQL on Windows

Topic: What���s the best Ruby web host? Previous Topic   Next Topic Topic: ShortURL and Google Search code

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use