SlideShare a Scribd company logo
© 2016 SEONGTAEK OH 1 smartdraw@gmail.com
Django Framework and Application Structure Application Dependencies
Framework
Django Framework
Django Applications
Django MTV (MVC)
Django Project
DatabaseWeb
Browser
Users
Admin
ORM
* Template
Rendering
Views (Control)
views.py
CBVs > FBVs
Class Based Views (CBVs)
• for most views
• django-extra-views
• django-braces
• django-vanilla-views
Function Based Views
(FBVs)
• for custom error views:
403, 404, 500 errors
• for complicated views
* Request
* Response
• HTML: HttpResponse
• JSON: Serializer
Template (View)
*.html
URLs (URLconf)
urls.py
Form (∈Template)
forms.py
Serializers
serializers.py
Models
(ORM)
models.py
• 5 models or less for 1 app
• Raw SQL:
raw() > extra()
Blog

More Related Content

What's hot (20)

Django
DjangoDjango
Django
Amanpreet Singh
 
Python Django tutorial | Getting Started With Django | Web Development With D...
Python Django tutorial | Getting Started With Django | Web Development With D...Python Django tutorial | Getting Started With Django | Web Development With D...
Python Django tutorial | Getting Started With Django | Web Development With D...
Edureka!
 
Django Girls Tutorial
Django Girls TutorialDjango Girls Tutorial
Django Girls Tutorial
Kishimi Ibrahim Ishaq
 
Laravel ppt
Laravel pptLaravel ppt
Laravel ppt
Mayank Panchal
 
Introduction to Server-Side Development with PHP.ppt
Introduction to Server-Side Development with PHP.pptIntroduction to Server-Side Development with PHP.ppt
Introduction to Server-Side Development with PHP.ppt
DestaBelayneh1
 
Django Architecture Introduction
Django Architecture IntroductionDjango Architecture Introduction
Django Architecture Introduction
Haiqi Chen
 
Angular Dependency Injection
Angular Dependency InjectionAngular Dependency Injection
Angular Dependency Injection
Nir Kaufman
 
Sharing Data Between Angular Components
Sharing Data Between Angular ComponentsSharing Data Between Angular Components
Sharing Data Between Angular Components
Squash Apps Pvt Ltd
 
Basics of VueJS
Basics of VueJSBasics of VueJS
Basics of VueJS
Squash Apps Pvt Ltd
 
Introduction to angular with a simple but complete project
Introduction to angular with a simple but complete projectIntroduction to angular with a simple but complete project
Introduction to angular with a simple but complete project
Jadson Santos
 
Introduction to spring boot
Introduction to spring bootIntroduction to spring boot
Introduction to spring boot
Santosh Kumar Kar
 
An introduction to React.js
An introduction to React.jsAn introduction to React.js
An introduction to React.js
Emanuele DelBono
 
Laravel - The PHP Framework for Web Artisans
Laravel - The PHP Framework for Web ArtisansLaravel - The PHP Framework for Web Artisans
Laravel - The PHP Framework for Web Artisans
Windzoon Technologies
 
Vue.js
Vue.jsVue.js
Vue.js
Jadson Santos
 
Php introduction
Php introductionPhp introduction
Php introduction
krishnapriya Tadepalli
 
MongoDB - Aggregation Pipeline
MongoDB - Aggregation PipelineMongoDB - Aggregation Pipeline
MongoDB - Aggregation Pipeline
Jason Terpko
 
Spring boot
Spring bootSpring boot
Spring boot
Gyanendra Yadav
 
Angular - Chapter 4 - Data and Event Handling
 Angular - Chapter 4 - Data and Event Handling Angular - Chapter 4 - Data and Event Handling
Angular - Chapter 4 - Data and Event Handling
WebStackAcademy
 
Php Presentation
Php PresentationPhp Presentation
Php Presentation
Manish Bothra
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
洪 鹏发
 
Python Django tutorial | Getting Started With Django | Web Development With D...
Python Django tutorial | Getting Started With Django | Web Development With D...Python Django tutorial | Getting Started With Django | Web Development With D...
Python Django tutorial | Getting Started With Django | Web Development With D...
Edureka!
 
Introduction to Server-Side Development with PHP.ppt
Introduction to Server-Side Development with PHP.pptIntroduction to Server-Side Development with PHP.ppt
Introduction to Server-Side Development with PHP.ppt
DestaBelayneh1
 
Django Architecture Introduction
Django Architecture IntroductionDjango Architecture Introduction
Django Architecture Introduction
Haiqi Chen
 
Angular Dependency Injection
Angular Dependency InjectionAngular Dependency Injection
Angular Dependency Injection
Nir Kaufman
 
Sharing Data Between Angular Components
Sharing Data Between Angular ComponentsSharing Data Between Angular Components
Sharing Data Between Angular Components
Squash Apps Pvt Ltd
 
Introduction to angular with a simple but complete project
Introduction to angular with a simple but complete projectIntroduction to angular with a simple but complete project
Introduction to angular with a simple but complete project
Jadson Santos
 
An introduction to React.js
An introduction to React.jsAn introduction to React.js
An introduction to React.js
Emanuele DelBono
 
Laravel - The PHP Framework for Web Artisans
Laravel - The PHP Framework for Web ArtisansLaravel - The PHP Framework for Web Artisans
Laravel - The PHP Framework for Web Artisans
Windzoon Technologies
 
MongoDB - Aggregation Pipeline
MongoDB - Aggregation PipelineMongoDB - Aggregation Pipeline
MongoDB - Aggregation Pipeline
Jason Terpko
 
Angular - Chapter 4 - Data and Event Handling
 Angular - Chapter 4 - Data and Event Handling Angular - Chapter 4 - Data and Event Handling
Angular - Chapter 4 - Data and Event Handling
WebStackAcademy
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
洪 鹏发
 

Django Framework and Application Structure

  • 1. © 2016 SEONGTAEK OH 1 [email protected] Django Framework and Application Structure Application Dependencies Framework Django Framework Django Applications Django MTV (MVC) Django Project DatabaseWeb Browser Users Admin ORM * Template Rendering Views (Control) views.py CBVs > FBVs Class Based Views (CBVs) • for most views • django-extra-views • django-braces • django-vanilla-views Function Based Views (FBVs) • for custom error views: 403, 404, 500 errors • for complicated views * Request * Response • HTML: HttpResponse • JSON: Serializer Template (View) *.html URLs (URLconf) urls.py Form (∈Template) forms.py Serializers serializers.py Models (ORM) models.py • 5 models or less for 1 app • Raw SQL: raw() > extra() Blog