Before we get started with django, let us undrstand little bit history about Web Development.
In the early days, Web developers wrote every page by hand. yes, every html was created separately with specific content.
As Web sites became larger, creating each webpage manually became tedious, time-consuming, and ultimately untenable. This problem was solved at NCSA solved this problem by letting the Web server spawn external programs that could generate HTML dynamically. The protocol is calld as Common Gateway Interface
, or CGI
. This was the major change in the way websites were developed
CGI was not the final solution, it had its own issues: CGI contained a lot of repetitive code, it made code reuse difficult. Rasmus Lerdorf wrote several Common Gateway Interface (CGI) programs in C, extended CGI to work with forms and database and he called it Personal Home Page/Forms Interpreter
or PHP/FI
. PHP
fixed many of the problems of CGI.
However, PHP did not addressed all aspects and it had its own issues; its very ease of use encourages sloppy, repetitive, ill-conceived code. PHP has many security vulnerabilities.
These issues led directly to the development of the current crop of "third-generation" Web-development frameworks. e.g. django
and Ruby on Rails
etc
Django was developed by a Web-development team in Lawrence, Kansas, USA. It was created in 2003, when the Web programmers at the Lawrence Journal-World newspaper, Adrian Holovaty and Simon Willison, began using Python to build applications.
Django was officially released in July 2005 and it was named Django
, after the jazz guitarist Django Reinhardt.
Two of the original World Online developers (the "Benevolent Dictators for Life," Adrian and Jacob) still provide central guidance for the framework's growth, but it's much more of a collaborative team effort.
>>> import django
>>> django.VERSION
(3, 2, 12, 'final', 0)
post by Pravin