Your SlideShare is downloading. ×
  • Like
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.


Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

The introduction of the furture web

The introduction of the furture web

Published in Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads


Total Views
On SlideShare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide


  • 1. Presenters: Azhar Sikander, Ifi Okoye, Eric Lundby, Jonathan Watson Django (A web development framework for Python)
  • 2. Outline…. Introduction to Django Django as MVC Design Pattern Django Architecture Django Modules Why Django for Web DevelopmentWhy Django for Web Development Steps to create New Project What Django generates Sample Application
  • 3. Introduction – What is Django? Django is pronounced JANG-oh. The “D” is silent. “Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design.” The web framework for perfectionists with deadlines.The web framework for perfectionists with deadlines. Primary Focus Dynamic and database driven websites Content based websites Example Websites (Washingtonpost,eBay, craigslist) Google AppEngine
  • 4. Introduction…(Cont.) History Named after famous Guitarist “Django Reinhardt” Developed by Adrian Holovaty and Jacob Kaplan-moss at World Online News for efficient development Open sourced in 2005 FirstVersion released September 3, 2008FirstVersion released September 3, 2008
  • 5. Django as an MVC Design Pattern MVT Architecture: Models Describes your data structure/database schema Views Controls what a user seesControls what a user sees Templates How a user sees it Controller The Django Framework URL parsing
  • 6. Django Modules Administration interface (CRUD interface) Authentication system Comments system Forms handling SessionsSessions Syndication framework (RSS and Atom Feeds) Caching Internationalization Localization Custom Middleware
  • 7. Django Architecture
  • 8. Why Django for Web Development Lets you divide code modules into logical groups to make it flexible to change MVC design pattern (MVT) Provides auto generated web admin to ease the website administration Provides pre-packaged API for common user tasks Provides you template system to define HTML template forProvides you template system to define HTML template for your web pages to avoid code duplication DRY Principle Allows you to define what URL be for a given Function Loosely Coupled Principle Allows you to separate business logic from the HTML Separation of concerns Everything is in python (schema/settings)
  • 9. Steps to create New Project Create a project Start an application Create the database (MySQL, Postgresql, SQLite) Define DB Settings in Define your models Add pluggable modules Write your templates Define your views Create URL mapping Test Application Deploy Application (Linux, Apache, mod_Python, DB)
  • 10. What Django generates… MySite/ // Script to interact with Django // Config$ // My Site URL mapping MyProject/MyProject/ // Project specific URL mapping // Data Models // Contains the call back functions Templates
  • 11. Show Sample Application
  • 12. Questions? (Questions are guaranteed in life; Answers aren’t.) For more information (Documentation, Download and News) A Good book to learn Django The best place to start A lot of Django Pluggables available online Explore at