Installing django

this article will demonstate how to install django in ubuntu.

Django:

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

Developed four years ago by a fast-moving online-news operation, Django was designed to handle two challenges: the intensive deadlines of a newsroom and the stringent requirements of the experienced Web developers who wrote it. It lets you build high-performing, elegant Web applications quickly.

Installing django:

Django is available open-source under the BSD license. It requires Python version 2.4 or higher, but it has no dependencies on other Python libraries.

Django can be downloaded from the following web page:

http://www.djangoproject.com/download/

installation:

if you dont have python, install it. Django is a python framework and it needs python to work. So if you dont have it, lets download it from http://www.python.org/download/

if successfully installed, go to the command prompt (or terminal for linux) and type python. You will get the python interactive window.

It is better you get python 2.5 or later. Cause I will work on python 2.6 . but dont try on 3.0 . it will not work well.

Now I am using django 1.3 . so I hope you got that from the web site.

Extract the package downloaded from the django site. Then open the command prompt and go to the directory you extract the package. Now type the following-

python setup.py install

(for linux user, use sudo python setup.py install )

after that, open python interactive shell (type python in the command prompt) and then type-

import django

if it return no error, type

print django.get_version()

it will show the django version.

Now if any point fails above, you may have not installed django correctly, try again from the beginning.

Advertisements

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