To setup Django on Eclipse on Windows XP perform the following steps:
- Install python V2.7. Make sure not to install V3 as Django is not compatible with this V3
- Download django: Download and extract the latest version of Django (v 1.2.1)
- Install Django:
- Install Java: Java Run-time Environment machine is a prerequisite to Eclipse. Click here to download JRE. After download is completed run the executable file.
- Install Eclipse: Installation is very straight forward. There is no setup file, all is required is to extract the downloaded archive. click here to download Eclipse classic.
- Create workspace: browse to the folder where you installed Eclipse. Click on Eclipse.exe and create a new workspace
- Install PyDev:
- Open your Eclipse
- Go to help -> Install New Software
- Add a new source Add http://pydev.org/updates
- Click Next
- Accept the agreement to start installation
- In the middle of the the installation you might be asked to accept a security certificate. Accept and proceeds and the security certificate
- after installation eclipse will restart
- Start your first project:
- Create new project (File > new prject > ByDev Project)
- Select project name
- Set up the python interpretter. To do so click on “Click her to configure an interpretter not listed”
- Click new
- For interpreter location, browse to the location where you installed Python, In our example it is C:\Python27\
- Select python.exe
- After association is completed close all windows
- Run the application: right click on the project root. Click Run As -> pydev:Django
- Browse to http://localhost:8000
That’s it! enjoy the great experience
Thanks Ala’a for this illustration.
Really this is great experience
Thanks again
Abdallah Rababah
Thanks to you. Hope it worked for you. Enjoy Django and let us see what you can do with it ;)….. I am sure you can do a lot 🙂
Thanks a lot Alaa, this is very helpful.
But I want to add that if you change your path when installing your python, then you need to add the python path before the Django install command like following.
C:\Django-1.2.1>F:\Python27\python.exe setup.py install
100%.
The assumption I made is that you always browse to the folder where you’ve installed python.
Thanks for the clarification
thanks, great article
Thank you for given a great experience to me
Any time Satish