Django Behind the Scenes

Posted by Clint Reeves

Django is bound to attract interest from propeller heads who value the contributions of this high-level Python Web Framework thatencourages rapid development and clean, pragmatic design?.

If you are? web developer you will undoubtedly recognize the data-model syntax below that is typical to Django:


Source: Django Documentation

Django, an open-source web app framework, written in Python, was first developed inside The World Company Newsroom and was named after guitarist? Django Reinhardt, considered one of the all-time greats.

The original development team wanted to write apps with the least amount of code possible. They basically re-built Python from scratch rather than use existing Python libraries.

?The point of a Web framework in the 21st century is to make the tedious aspects of Web development fast. Django should allow for incredibly quick Web development,? said the Django Team.

One of the most interesting things about Django is its reliance on the PostgreSQL database system to power its backend.

Django pursues a number of general Database API goals within its framework includingexecute SQL statements as few times as possible and optimize statements internally.?

It further states:

  • The database API should allow rich, expressive statements in as little syntax as possible. It should not rely on importing other modules or helper objects.
  • Joins should be performed automatically, behind the scenes, when necessary.
  • Every object should be able to access every related object, system-wide. This access should work both ways.

The New York Times built their Interactive geo-app called Represent with Django.

?Using your address as a starting point, Represent figures out which political districts you live in and who represents you at different levels of government,? said The New York Times.

?It draws maps that show how where you live fits into the political geography of the city. And using information collected from around the Web, it presents a customized activity stream that tracks what the people who represent you are doing.?

The NYT said they had chosen Django — despite most of their historical work being done in, Ruby on Rails — because they wanted to use GeoDjango, an add-on that supports geometry fields and extends the ORM to allow spatial queries.

This article was brought to you by Midphase, for shared hosting, cloud servers and 24/7 support visit our site here www.midphase.com

No Comments

Comments are closed.

Stop blending in with the rest of the crowd and start leaving your mark on the web