Installation of Django

Type the following commands in terminal:

#wget http://media.djangoproject.com/releases/1.3/Django-1.3.1.tar.gz
#tar xzvf Django-1.3.tar.gz
#cd Django-1.3
#sudo python setup.py install

You can verify that Python is installed by typing python from your shell; you should see something like:

Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)

[GCC 4.0.1 (Apple Inc. build 5465)] on darwin

Type “help”, “copyright”, “credits” or “license” for more information.

>>>

To verify that Django can be seen by Python, type python from your shell. Then at the Python prompt, try to import Django:

>>> import django

>>> print django.get_version()

1.3


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