Saturday, January 4, 2014

Installing Django on Windows 7 in less than 5 minutes

Out there, there are many tutorials but I think this one may just make the differece.
I assume that you have downloaded a python 2.7.x  and copy of Django 1.6.x .I also suppose that you are familiar with cmd commands like cd, dir , cd.., etc

Step ONE: Install Python
Click on the Python just downloaded to launch the installation. Just follow next and all the defaults.
It should be installed in C:\python27.

Step TWO: Make Python available in the terminal (cmd):
To do this you have to register it as system variables.
Right-Click Properties --> Advanced system settings -->Environment Variables -->System variable -->path -->Edit: and paste the following.
;C:\Python27;C:\Python27\Scripts;C:\Python27\DLLs\;C:\Python27\Lib\;

Step THREE: install Django
Unzip the downloaded compressed folder under the C: drive.
Go to the Command prompt CMD and navigate inside the C:\Django 1.6.x folder.
> cd C:\Django 1.6.x
 C:\Django 1.6.x> python.exe setup.py install 
Please wait till all is done. 

Step FOUR: Create a Django Project Go to a location where you want to create your project. Our project name is ido.

cmd ..> django-admin.py startproject ido
 ..ido> python.exe manage.py runserver

Step FIVE: Launch it.
 Just open your browser and type:
 http://127.0.0.1:8000

By now you should have your project available. Feel free to amend.

1 comment: