Saturday, July 18, 2009

MY TRYST WITH DJANGO - Part 1

THE BEGINNING

Something very conspicuous about software and programming languages are that they are named in rather peculiar manner. Sometimes it is a play of words as WINE (Wine Is Not an Emulator) and XNA (XNA is Not Acronymed) to those named after some scientist or mathematician as Ada, Turing, Pascal etc , then there are also those named after some entertainment/cartoon character as Linda (allegedly named after porn star Linda Lovelace) , Python (named after the comedy group Monty Python) and Django (named after jazz guitarist Django Reinhart).

Fig1. The British comedy group Monty PYTHON

Fig2. Jazz Guitarist DJANGO Reinhardt

DJANGO 1.0

An open source web development tool , developed in 2005 for maintaining news websites for The World Company , Lawrence , Kansas.

Versions 1.0 and higher , released in early 2009 has been lot different than the previous version of 0.96.

Just to check everything is in order ..... check the django version and django-admin must be on the path !

Fig3. DJANGO version in python shell

Fig4.'django-admin.py' must in the path

'IT WORKED !'

After the efforts , it is soothing to see the pastel blue 'IT WORKED'

Fig5.First Django page

HELLO WORLD

Hello World and time is made modifying the views and urls file.

Fig6. 'Hello World'

Fig7.Time in Django , refreshing the screen updates the recent time

Fig8.'Hello World' and 'Time'

Fig9.Error 404 , the http://127.0.0.1:8000/ is no special page

REFERENCES

2 references used by me are ,

(1) The Definitive Guide to Django , 2nd Edition


(2) Django 1.0 WebSite Development


No comments: