Django (Python Web Developement Framework) Installation in Windows

It took me about five different installation guides, but I finally got Django to work on my Windows XP .

Here’s a a simpe step for those who were having hard time in django installation in windows.

1. Download Python 2.6 from here.

2. Download latest version of Django from here.  Extract the file on  C drive.  which makes c:/Django.

3. You can see setup.py file under c:/Django folder.

4. Go to windows command prompt and navigate to the c:/Django folder and enter

python setup.py install

. For this you should have set the python folder to the path of windows . You can do this by
=> Right click on “My Computer” and select Properties. Go to advanced, then Environment Variables at the bottom. Edit “Path” and enter the above path ”c:\Python26”

5. Now you can see the django installed on the comment prompt. Its not finished yet.

6. Navigate to the

C:\Python26\Lib\site-packages\

. You can see  directory named ‘Django’ which ensures that django has been successfully installed in your system.

Now its time to create project  and run server .

7. Go to command prompt and navigate to

C:\Python26\Lib\site-packages\django\bin>

and enter ‘

django-admin.py startproject mysite

‘ without single quote. This will create your project inside the bin folder with name  ‘mysite’.

8. Again go to command prompt and naviagate to

C:\Python26\Lib\site-packages\django\bin\mysite>

and enter

manage.py runserver

and go to your browser and type

http://127.0.0.1:8000/

You can see the page like this:
Djangopart2_1

This is how I made django installed on my windows xp. Hope you will find this steps useful to start with django installation and start your django web application .A good alternative for django installation in windows will be instantDjango like we have instantrails for ruby on rails.

About creating ‘helloworld’ web application I will soon update this post.

  • Share/Bookmark
Django, Python

Comments

2 Responses to “Django (Python Web Developement Framework) Installation in Windows”

Leave Comment

(required)

(required)