Home > Django, IT, Python, Web > Install Python and Django on Windows

Install Python and Django on Windows

January 25, 2010 Leave a comment Go to comments

Install the great Django framework on your Windows PC is so simple, you only need to follow a couple of steps, and you will be ready to work.

Step One – Install Python for Windows:

1- On the Python.org Download Page you can simply discover your Windows version of Python. Download it.

2- Open the installer and follow the installation’s steps.

3- Open “The Command Line Prompt” and type “python“. If the prompt doesn’t get any errors and you can see >>> at the beginning of the line, all it is OK. (if something has gone wrong, you have to add the Python’s installation directory into the environment variable PATH)

4- Nice and simple IDE, that I’ve used during the High School is PythonWin; otherwise you can directly use NetBeans adding the Python Plug-In.

Step Two – Install Django

1- Download Django and extract it from the zip file.

2- Back “The Command Line Prompt”, navigate into the just extracted django directory and type: python setup.py install. This command will copy the Django files into the Python’s installation directory (probably into <C:\Python26\Lib\site-packages>).

You are ready to use Django on your Windows PC.

Enjoy ;)

About these ads
Categories: Django, IT, Python, Web Tags: , ,
  1. Keshav Magge
    January 26, 2011 at 5:16 pm | #1

    I tried extracting the Django archive (Django-1.2.4.tar.gz) on windows using Winzip, 7z, cygwin. None of the attempts got thru. The tar.gz file was found to be an invalid archive file by these programs.

    Any pointers on what the problem could be?

    Thanks
    Keshav Magge

  2. harshit
    May 23, 2011 at 8:12 pm | #2

    problem in installing django its showing can’t read that file error message display

  3. John Doe
    December 16, 2011 at 8:35 pm | #3

    not really this cut and dry…

    yeah, you can import django from the python console, but running django-admin.py from any directory and other commands is not possible without changing your PATH. its actually a PITA

  4. sdfs
    February 3, 2012 at 9:58 pm | #4

    @harshit, assuming your in the correct directory, try omitting the ‘python’ from your command – just type: setup.py install :)

  5. dileep98490
    February 10, 2012 at 9:43 am | #5

    Reblogged this on Dil wizz and commented:
    This post is supercool and I used it to install Python and Django with less effort. In the third step, to set up the path variable, use the help from this site http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx

    Also when you go to download pages, don’t download the alpha or test versions, as no support is provided to them immediately. As of 10/02/2012, the stable Python versions are Python 2.7.2 and Django 1.3.1

  6. September 21, 2012 at 4:41 pm | #6

    sdfs :
    @harshit, assuming your in the correct directory, try omitting the ‘python’ from your command – just type: setup.py install

    Yes – that’s what i had to do as well, worked for me!
    Thanks for this post – direction helped out a lot

  7. September 24, 2012 at 6:04 pm | #7

    C:\Python*> (whatever number that comes up )
    C:\Python*\Django*>setup.py install

    it should do the rest :)

  8. AnilKumar
    November 9, 2012 at 11:25 am | #8

    Wonderful! You just made simple as possible. Thanks

  9. ajit singh
    December 8, 2012 at 8:15 pm | #9

    very quick and effective steps ….nice

  10. February 5, 2013 at 9:58 am | #10

    Excellent post. I was checking constantly this blog and I am impressed!
    Extremely helpful info specifically the last part :) I care for such information a lot.
    I was looking for this certain information for a very long time.
    Thank you and best of luck.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: