SlideShare ist ein Scribd-Unternehmen logo
1 von 12
Downloaden Sie, um offline zu lesen
Presenters:
Azhar Sikander, Ifi Okoye,
Eric Lundby, Jonathan Watson
Django
(A web development framework for Python)
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
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
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
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
Django Modules
Administration interface (CRUD interface)
Authentication system
Comments system
Forms handling
SessionsSessions
Syndication framework (RSS and Atom Feeds)
Caching
Internationalization
Localization
Custom Middleware
Django Architecture
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)
Steps to create New Project
Create a project
Start an application
Create the database (MySQL, Postgresql, SQLite)
Define DB Settings in Settings.py
Define your models
Add pluggable modules
Write your templates
Define your views
Create URL mapping
Test Application
Deploy Application (Linux, Apache, mod_Python, DB)
What Django generates…
MySite/
__init__.py
Manage.py // Script to interact with Django
Settings.py // Config
URLs.py$ // My Site URL mapping
MyProject/MyProject/
__init__.py
URLs.py // Project specific URL mapping
Models.py // Data Models
Views.py // Contains the call back functions
Admin.py
Templates
Show Sample Application
Questions?
(Questions are guaranteed in life; Answers aren’t.)
For more information (Documentation,
Download and News)
http://www.djangoproject.com/http://www.djangoproject.com/
A Good book to learn Django
http://www.djangobook.com/en/1.0/
The best place to start
http://docs.djangoproject.com/en/dev/
A lot of Django Pluggables available online
Explore at
http://www.djangopluggables.com

Weitere ähnliche Inhalte

Was ist angesagt?

Java2day 2013 : Modern workflows for javascript integration
Java2day 2013 : Modern workflows for javascript integrationJava2day 2013 : Modern workflows for javascript integration
Java2day 2013 : Modern workflows for javascript integration
Mite Mitreski
 
Javascript Frameworks
Javascript FrameworksJavascript Frameworks
Javascript Frameworks
Mitesh Gandhi
 
Backbonejs
BackbonejsBackbonejs
Backbonejs
Sam Lee
 
Rest Introduction (Chris Jimenez)
Rest Introduction (Chris Jimenez)Rest Introduction (Chris Jimenez)
Rest Introduction (Chris Jimenez)
PiXeL16
 

Was ist angesagt? (20)

AngularJS - the folly of choice
AngularJS - the folly of choiceAngularJS - the folly of choice
AngularJS - the folly of choice
 
Progressive web applications development
Progressive web applications developmentProgressive web applications development
Progressive web applications development
 
Creating MVC Application with backbone js
Creating MVC Application with backbone jsCreating MVC Application with backbone js
Creating MVC Application with backbone js
 
Google Developers Group - Porto Alegre # Introducing to AngularJS
Google Developers Group - Porto Alegre # Introducing to AngularJSGoogle Developers Group - Porto Alegre # Introducing to AngularJS
Google Developers Group - Porto Alegre # Introducing to AngularJS
 
Jquery
JqueryJquery
Jquery
 
Bliblidotcom - AngularJS Introduction
Bliblidotcom - AngularJS IntroductionBliblidotcom - AngularJS Introduction
Bliblidotcom - AngularJS Introduction
 
Intro to sbt-web
Intro to sbt-webIntro to sbt-web
Intro to sbt-web
 
Itroducing Angular JS
Itroducing Angular JSItroducing Angular JS
Itroducing Angular JS
 
Java2day 2013 : Modern workflows for javascript integration
Java2day 2013 : Modern workflows for javascript integrationJava2day 2013 : Modern workflows for javascript integration
Java2day 2013 : Modern workflows for javascript integration
 
The Future of the Rules module in Drupal 8
The Future of the Rules module in Drupal 8The Future of the Rules module in Drupal 8
The Future of the Rules module in Drupal 8
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVC
 
XAML/C# to HTML5/JS
XAML/C#  to HTML5/JS XAML/C#  to HTML5/JS
XAML/C# to HTML5/JS
 
Javascript Frameworks
Javascript FrameworksJavascript Frameworks
Javascript Frameworks
 
Angular introduction basic
Angular introduction basicAngular introduction basic
Angular introduction basic
 
Model Binding In ASP.NET MVC
Model Binding In ASP.NET MVCModel Binding In ASP.NET MVC
Model Binding In ASP.NET MVC
 
From MVC to Component Based Architecture
From MVC to Component Based ArchitectureFrom MVC to Component Based Architecture
From MVC to Component Based Architecture
 
Module2
Module2Module2
Module2
 
Backbonejs
BackbonejsBackbonejs
Backbonejs
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVC
 
Rest Introduction (Chris Jimenez)
Rest Introduction (Chris Jimenez)Rest Introduction (Chris Jimenez)
Rest Introduction (Chris Jimenez)
 

Andere mochten auch

Andere mochten auch (20)

Realizando Simulações de Rede com o NS
Realizando Simulações de Rede com o NSRealizando Simulações de Rede com o NS
Realizando Simulações de Rede com o NS
 
Mini Curso de Django
Mini Curso de DjangoMini Curso de Django
Mini Curso de Django
 
Web Development in Django
Web Development in DjangoWeb Development in Django
Web Development in Django
 
Unchain Your Web Development With Django
Unchain Your Web Development With DjangoUnchain Your Web Development With Django
Unchain Your Web Development With Django
 
Python for Beginners ( #PyLadiesKyoto Meetup )
Python for Beginners ( #PyLadiesKyoto Meetup )Python for Beginners ( #PyLadiesKyoto Meetup )
Python for Beginners ( #PyLadiesKyoto Meetup )
 
python beginner talk slide
python beginner talk slidepython beginner talk slide
python beginner talk slide
 
Django
DjangoDjango
Django
 
Learn python – for beginners
Learn python – for beginnersLearn python – for beginners
Learn python – for beginners
 
Python Ecosystem for Beginners - PyCon Uruguay 2013
Python Ecosystem for Beginners - PyCon Uruguay 2013Python Ecosystem for Beginners - PyCon Uruguay 2013
Python Ecosystem for Beginners - PyCon Uruguay 2013
 
JVM Magic
JVM MagicJVM Magic
JVM Magic
 
Jvm problem diagnostics
Jvm problem diagnosticsJvm problem diagnostics
Jvm problem diagnostics
 
HotSpot JVM Tuning
HotSpot JVM TuningHotSpot JVM Tuning
HotSpot JVM Tuning
 
Java 9 and the impact on Maven Projects (ApacheCon Europe 2016)
Java 9 and the impact on Maven Projects (ApacheCon Europe 2016)Java 9 and the impact on Maven Projects (ApacheCon Europe 2016)
Java 9 and the impact on Maven Projects (ApacheCon Europe 2016)
 
Spring Framework 5: History and Reactive features
Spring Framework 5: History and Reactive featuresSpring Framework 5: History and Reactive features
Spring Framework 5: History and Reactive features
 
Java 9 Project Jigsaw
Java 9 Project JigsawJava 9 Project Jigsaw
Java 9 Project Jigsaw
 
G1 Garbage Collector: Details and Tuning
G1 Garbage Collector: Details and TuningG1 Garbage Collector: Details and Tuning
G1 Garbage Collector: Details and Tuning
 
What's New in Java SE 9
What's New in Java SE 9What's New in Java SE 9
What's New in Java SE 9
 
PeopleSoft Integration broker Performance Tunning
PeopleSoft Integration broker Performance TunningPeopleSoft Integration broker Performance Tunning
PeopleSoft Integration broker Performance Tunning
 
High performance network programming on the jvm oscon 2012
High performance network programming on the jvm   oscon 2012 High performance network programming on the jvm   oscon 2012
High performance network programming on the jvm oscon 2012
 
Java Performance Monitoring & Tuning
Java Performance Monitoring & TuningJava Performance Monitoring & Tuning
Java Performance Monitoring & Tuning
 

Ähnlich wie Django

0506-django-web-framework-for-python.pdf
0506-django-web-framework-for-python.pdf0506-django-web-framework-for-python.pdf
0506-django-web-framework-for-python.pdf
radhianiedjan1
 
Unleash-the-power-of-Django.pptx
Unleash-the-power-of-Django.pptxUnleash-the-power-of-Django.pptx
Unleash-the-power-of-Django.pptx
ShivamSv1
 
django_introduction20141030
django_introduction20141030django_introduction20141030
django_introduction20141030
Kevin Wu
 

Ähnlich wie Django (20)

Why Django for Web Development
Why Django for Web DevelopmentWhy Django for Web Development
Why Django for Web Development
 
Django Seminar
Django SeminarDjango Seminar
Django Seminar
 
Introduction to Django
Introduction to DjangoIntroduction to Django
Introduction to Django
 
An Introduction to Django Web Framework
An Introduction to Django Web FrameworkAn Introduction to Django Web Framework
An Introduction to Django Web Framework
 
Company Visitor Management System Report.docx
Company Visitor Management System Report.docxCompany Visitor Management System Report.docx
Company Visitor Management System Report.docx
 
Real-Time Web Applications with ASP.NET WebAPI and SignalR
Real-Time Web Applications with ASP.NET WebAPI and SignalRReal-Time Web Applications with ASP.NET WebAPI and SignalR
Real-Time Web Applications with ASP.NET WebAPI and SignalR
 
Ramya devi R internet of things
Ramya devi R internet of thingsRamya devi R internet of things
Ramya devi R internet of things
 
Developing Java Web Applications
Developing Java Web ApplicationsDeveloping Java Web Applications
Developing Java Web Applications
 
Angular js workshop
Angular js workshopAngular js workshop
Angular js workshop
 
Rapid web application development using django - Part (1)
Rapid web application development using django - Part (1)Rapid web application development using django - Part (1)
Rapid web application development using django - Part (1)
 
The Future of ASP.NET
The Future of ASP.NETThe Future of ASP.NET
The Future of ASP.NET
 
CODE IGNITER
CODE IGNITERCODE IGNITER
CODE IGNITER
 
0506-django-web-framework-for-python.pdf
0506-django-web-framework-for-python.pdf0506-django-web-framework-for-python.pdf
0506-django-web-framework-for-python.pdf
 
Concepts and applications of Django.pptx
Concepts and applications of Django.pptxConcepts and applications of Django.pptx
Concepts and applications of Django.pptx
 
Django framework
Django framework Django framework
Django framework
 
Unleash-the-power-of-Django.pptx
Unleash-the-power-of-Django.pptxUnleash-the-power-of-Django.pptx
Unleash-the-power-of-Django.pptx
 
django_introduction20141030
django_introduction20141030django_introduction20141030
django_introduction20141030
 
ASP.NEt MVC and Angular What a couple
ASP.NEt MVC and Angular What a coupleASP.NEt MVC and Angular What a couple
ASP.NEt MVC and Angular What a couple
 
بررسی چارچوب جنگو
بررسی چارچوب جنگوبررسی چارچوب جنگو
بررسی چارچوب جنگو
 
Spring tutorials
Spring tutorialsSpring tutorials
Spring tutorials
 

Kürzlich hochgeladen

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Kürzlich hochgeladen (20)

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 

Django

  • 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
  • 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 Settings.py 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/ __init__.py Manage.py // Script to interact with Django Settings.py // Config URLs.py$ // My Site URL mapping MyProject/MyProject/ __init__.py URLs.py // Project specific URL mapping Models.py // Data Models Views.py // Contains the call back functions Admin.py Templates
  • 12. Questions? (Questions are guaranteed in life; Answers aren’t.) For more information (Documentation, Download and News) http://www.djangoproject.com/http://www.djangoproject.com/ A Good book to learn Django http://www.djangobook.com/en/1.0/ The best place to start http://docs.djangoproject.com/en/dev/ A lot of Django Pluggables available online Explore at http://www.djangopluggables.com