8 May 2013
This post appears to be over 6 months old.
For my own reference I just wanted to document my first time installing Python and Django on Windows 8. I have installed Python before on a Mac, but never on Windows.
To begin with I installed the Python 2.7 (the version Django is compatible with at this point in time).
First, I downloaded and installed Python. Python has an ‘installer’ so this was straightforward. I would recommend the install location to be short and simple c:/python27. It's a lot easier on your command prompt typing later on.
Python is not added to the DOS path by default. I needed to tell windows the PATH environment variable to include paths to Python executable and additional scripts. Under My Computer > Properties > Advanced System Settings > Environment Variables > I created a new variable called "PythonPath” and added the following…
Above being my location to the Python executable.
Now that I had Python installed, it was time to install Django. I download the Django files then opened the command prompt. Using the Command Prompt I changed directory (“cd”) into the extracted Django directory. I then typed the following...
python setup.py install
This installs Django into Python’s site-packages directory.
The download Django file is no longer needed so I deleted it.
Last I created a new Django project I simply go to the desired project folder and typed.
python c:\python26/lib/site-packages/django/bin/django-admin.py startproject myproject
This creaded my base files needed.
The I“cd” into the project directory and type the following command:
python manage.py runserver