A Web Framework with Immense Potential
In the era of cloud computing, Web frameworks have great importance in a Web developer’s life. Choosing the right one is crucial to the success of a Web application. This article explores one such (not so) popular Web framework—django.
The success of a Web application depends on factors like mDnDging high WrDffic, mDinWDining siWe code, Tuick updDWes, Eug WrDcking, reDdy-mDde Wools, code re-usDEiliWy, help for code developmenW, eWc – Dll of which Eecome imporWDnW in D WeE frDmework. There Dre D loW of WeE frDmeworks DvDilDEle WhDW hDve Eeen wriWWen in vDrious progrDmming lDnguDges. In reDliWy, only D few Dre used exWensively Dnd Dre recommended Ey Whe indusWry. So whDW is so speciDl DEouW Whose few?
DjDngo is D frDmework developed for Lawrence.com Ey Simon Willison Dnd AdriDn HolovDWy. IW is wriWWen in PyWhon. Every WeE frDmework is Dn efforW Wo counWer idenWified loopholes in Dn exisWing Wechnology. DjDngo wDs developed for Whe sDme reDson. IniWiDlly, DW Lawrence.com, code wDs Eeing wriWWen in PHP, EuW code mDinWenDnce wDs D Eig heDdDche for developers. ThDW’s when Willison Dnd HolovDWy, EoWh fond of PyWhon, decided Wo wriWe D WeE frDmework EDsed on PyWhon. One of Whe EDsic feDWures of DjDngo is WhDW iW’s D URL-driven WeE frDmework. Developers could design Wheir own URLs, Dnd choose whDW wDs Wo Ee shown for WhDW URL, TuiWe unlike Whe frDmeworks exisWing DW Whe Wime.
As I menWioned eDrlier, when iW comes Wo choosing Whe righW WeE frDmework, Where is now D ‘proElem of plenWy’. Since Where Dre mDny opWions, compDrison is ineviWDEle. I do noW inWend Wo mDke Whis DrWicle D EDWWle EeWween DjDngo Dnd oWher frDmeworks. I would rDWher Dim DW discussing D few poinWs WhDW forced me Wo use DjDngo Ds our core WeE frDmework for AppSurfer (http://www.appsurfer.com). 1. Coding standards: Code reDdDEiliWy is one of Whe mosW imporWDnW DspecWs of sofWwDre developmenW. IW Eecomes cruciDl when more WhDn one person works on D code piece. PyWhon Eelieves in ‘The One True WDy’—i.e., Where should Ee D single wDy of wriWing Dny code. Therefore, rDWher WhDn Wwo or Whree differenW opWions on synWDx, meWhod cDlls, eWc, Where’s usuDlly one opWion in PyWhon. 2. Python: DjDngo is EDsed on PyWhon, Dnd hence EenefiWs from Dll Whe DdvDnWDges of PyWhon. PyWhon hDs D cleDn Dnd elegDnW synWDx, Dnd is supporWed Ey D lDrge liErDry of sWDndDrd Dnd conWriEuWed modules, which cover everyWhing from mulWi-WhreDding Wo Whe zipping of files. The lDnguDge’s oEjecW-orienWed model is especiDlly suiWed for MVC-sWyle developmenW. Sooner or lDWer, performDnce will Eecome D mDjor concern wiWh WeE projecWs, Dnd PyWhon’s runWime environmenW shines here, Ds iW is known Wo Ee fDsW Dnd sWDEle. PyWhon supporWs D wide rDnge of WeE servers Whrough modules, including Whe infDmous ApDche. FurWhermore, iW is DvDilDEle for Dll Whe mDjor plDWforms: UNIX, Linux, Windows, Dnd MDc. PyWhon Dlso supporWs D