SlideShare a Scribd company logo
Submitted To
Dr. Yashpal Singh
HEAD (Computer Science &
Engg.)
B.I.E.T. Jhansi
Submitted By
Yokesh
Computer Science &
Engg.
(3rd Year)
Roll No - 14043100601
CONTENTS
1) What is Django ?
2) What is MTV ? Difference b/w MTV and
MVC?
3) Models , Templates and Views
4) Installation of Django
5) Creating Project ,Apps & Folder Structure
6) Django Database API
7) Advantages
8) Conclusion
2
What is Django ?
1. It is a free and open-source web framework,
written in Python, which follows the model-view-
template (MVT) architectural pattern.
2. It is maintained by the Django Software
Foundation (DSF).
3. Django is a high-level Python web framework that
encourages rapid development and clean,
pragmatic design.
4. Django makes it easer to build better web apps
quickly and with less code.
3
What is MVT ?
“It is basically an combination of model , template
and view clubbed together for developing a web
project in a new modular approach. “
4
Difference b/w MTV and MVC?
M stands for “Model,” the data access layer.
T stands for “Template,” the presentation layer.
V stands for “View,” the business logic layer and
MVT Architecture
M stands for “Model,” the data access layer.
V stands for “View,” the presentation layer.
C stands for “Controller, ” the business logic layer.
MVC Architecture
5
Models , Templates and Views
 Model A model is a class that represents table
or collection in our DB, and where every attribute
of the class is a field of the table or collection.
They essentially , define your database layout,
with additional metadata.
6
 View This is the portion of the framework
describes the logic which is to be followed when a
user hits any particular url.
Models , Templates and Views
Urls.py
Views.py
7
Models , Templates and Views
 Template The UI part ,or the visible part
8
Installation & Folder Structure
1. Creation of Virtual environment
2. Moving into virtualenv and starting the djangoproject
3. Now we have the following Project directory structure
9
Installation & Folder Structure
4. Creating an app and adding the app to the setting.py file
5. App Directory Structure
6. Running the Server
10
Django Database API
Running the interactive database API shell
Performing Operations on Models
 Creation of new entry in the model
 Filtering out entries from a particular model
Support For various Databases Like
PostgreSQL
Oracle
SQLite3
11
Advantages
1)Object-Relational Mapping (ORM) Support: Django
rovides a bridge between the data model and the
database engine, and supports a large set of
database systems including MySQL, Oracle, Postgres,
etc.
2)Multilingual Support: Django supports multilingual
websites through its built-in internationalization
system. So we can develop our website, which would
support multiple languages.
12
Advantages
3)Administration GUI: Django provides a nice ready-to-
use user interface for administrative activities.
4)Development Environment: Django comes with a
lightweight web server to facilitate end-to-end
application development and testing.
13
Who uses Django ??
Nasa official website
 Bitbucket
 Pinterest
 Spotify
 Instagram
14
Conclusion
Although Today we are having a large no of
available framework to choose from for web
development ,Django takes cares of all the
security aspects the users has to not worry
about the different attacks. The inbuilt Database
api is really very handy because it gives us an
total overview before implementing actual logic
what we are doing so it is too much helpful.
15
Any Questions ?
16
Thank You!
17

More Related Content

What's hot

Django Tutorial | Django Web Development With Python | Django Training and Ce...
Django Tutorial | Django Web Development With Python | Django Training and Ce...Django Tutorial | Django Web Development With Python | Django Training and Ce...
Django Tutorial | Django Web Development With Python | Django Training and Ce...
Edureka!
 
Introduction to Django
Introduction to DjangoIntroduction to Django
Introduction to Django
James Casey
 
Django for Beginners
Django for BeginnersDjango for Beginners
Django for Beginners
Jason Davies
 
Django Girls Tutorial
Django Girls TutorialDjango Girls Tutorial
Django Girls Tutorial
Kishimi Ibrahim Ishaq
 
Spring Framework Petclinic sample application
Spring Framework Petclinic sample applicationSpring Framework Petclinic sample application
Spring Framework Petclinic sample application
Antoine Rey
 
Django PPT.pptx
Django PPT.pptxDjango PPT.pptx
Django PPT.pptx
KhyatiBandi1
 
What is an API?
What is an API?What is an API?
What is an API?
Muhammad Zuhdi
 
Flask – Python
Flask – PythonFlask – Python
Flask – Python
Max Claus Nunes
 
AngularJS
AngularJS AngularJS
Python/Flask Presentation
Python/Flask PresentationPython/Flask Presentation
Python/Flask Presentation
Parag Mujumdar
 
Python/Django Training
Python/Django TrainingPython/Django Training
Python/Django Training
University of Technology
 
Introduction to django framework
Introduction to django frameworkIntroduction to django framework
Introduction to django framework
Knoldus Inc.
 
Angularjs PPT
Angularjs PPTAngularjs PPT
Angularjs PPT
Amit Baghel
 
Django by rj
Django by rjDjango by rj
Java web services
Java web servicesJava web services
Java web services
kumar gaurav
 
Introduction to Node.js
Introduction to Node.jsIntroduction to Node.js
Introduction to Node.js
Vikash Singh
 
Flutter
FlutterFlutter
Django
DjangoDjango
Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface) Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface)
Vibhawa Nirmal
 
Flask
FlaskFlask

What's hot (20)

Django Tutorial | Django Web Development With Python | Django Training and Ce...
Django Tutorial | Django Web Development With Python | Django Training and Ce...Django Tutorial | Django Web Development With Python | Django Training and Ce...
Django Tutorial | Django Web Development With Python | Django Training and Ce...
 
Introduction to Django
Introduction to DjangoIntroduction to Django
Introduction to Django
 
Django for Beginners
Django for BeginnersDjango for Beginners
Django for Beginners
 
Django Girls Tutorial
Django Girls TutorialDjango Girls Tutorial
Django Girls Tutorial
 
Spring Framework Petclinic sample application
Spring Framework Petclinic sample applicationSpring Framework Petclinic sample application
Spring Framework Petclinic sample application
 
Django PPT.pptx
Django PPT.pptxDjango PPT.pptx
Django PPT.pptx
 
What is an API?
What is an API?What is an API?
What is an API?
 
Flask – Python
Flask – PythonFlask – Python
Flask – Python
 
AngularJS
AngularJS AngularJS
AngularJS
 
Python/Flask Presentation
Python/Flask PresentationPython/Flask Presentation
Python/Flask Presentation
 
Python/Django Training
Python/Django TrainingPython/Django Training
Python/Django Training
 
Introduction to django framework
Introduction to django frameworkIntroduction to django framework
Introduction to django framework
 
Angularjs PPT
Angularjs PPTAngularjs PPT
Angularjs PPT
 
Django by rj
Django by rjDjango by rj
Django by rj
 
Java web services
Java web servicesJava web services
Java web services
 
Introduction to Node.js
Introduction to Node.jsIntroduction to Node.js
Introduction to Node.js
 
Flutter
FlutterFlutter
Flutter
 
Django
DjangoDjango
Django
 
Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface) Introduction to APIs (Application Programming Interface)
Introduction to APIs (Application Programming Interface)
 
Flask
FlaskFlask
Flask
 

Similar to Django Seminar

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
DjangoDjango
Django
sisibeibei
 
Company Visitor Management System Report.docx
Company Visitor Management System Report.docxCompany Visitor Management System Report.docx
Company Visitor Management System Report.docx
fantabulous2024
 
Top 10 python frameworks for web development in 2020
Top 10 python frameworks for web development in 2020Top 10 python frameworks for web development in 2020
Top 10 python frameworks for web development in 2020
Alaina Carter
 
CTE 323 - Lecture 1.pptx
CTE 323 - Lecture 1.pptxCTE 323 - Lecture 1.pptx
CTE 323 - Lecture 1.pptx
OduniyiAdebola
 
Basic Python Django
Basic Python DjangoBasic Python Django
Basic Python Django
Kaleem Ullah Mangrio
 
Django
Django Django
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)
Nishant Soni
 
Django Framework Interview Guide - Part 1
Django Framework Interview Guide - Part 1Django Framework Interview Guide - Part 1
Django Framework Interview Guide - Part 1
To Sum It Up
 
Django Workflow and Architecture
Django Workflow and ArchitectureDjango Workflow and Architecture
Django Workflow and Architecture
Andolasoft Inc
 
What is Django Technology and How is it Used
What is Django Technology and How is it UsedWhat is Django Technology and How is it Used
What is Django Technology and How is it Used
RiyaBhardwaj51
 
Webface - Passion is Innovation
Webface - Passion is InnovationWebface - Passion is Innovation
Webface - Passion is Innovation
Abhishek kumar
 
Top 11 Front-End Web Development Tools To Consider in 2020
 Top 11 Front-End Web Development Tools To Consider in 2020 Top 11 Front-End Web Development Tools To Consider in 2020
Top 11 Front-End Web Development Tools To Consider in 2020
Katy Slemon
 
Django
DjangoDjango
Django framework
Django frameworkDjango framework
Django framework
Arslan Maqsood
 
Ramya devi R internet of things
Ramya devi R internet of thingsRamya devi R internet of things
Ramya devi R internet of things
PriyadharshiniVS
 
NestJS or Django: A Comparative Study of Web Frameworks
NestJS or Django: A Comparative Study of Web FrameworksNestJS or Django: A Comparative Study of Web Frameworks
NestJS or Django: A Comparative Study of Web Frameworks
Tien Nguyen
 
Django Framework Overview forNon-Python Developers
Django Framework Overview forNon-Python DevelopersDjango Framework Overview forNon-Python Developers
Django Framework Overview forNon-Python Developers
Rosario Renga
 
Advantages Of Using Django Framework To Build Scalable.pdf
Advantages Of Using Django Framework To Build Scalable.pdfAdvantages Of Using Django Framework To Build Scalable.pdf
Advantages Of Using Django Framework To Build Scalable.pdf
Mindfire LLC
 
Project report for final year project
Project report for final year projectProject report for final year project
Project report for final year project
suneel singh
 

Similar to Django Seminar (20)

Unleash-the-power-of-Django.pptx
Unleash-the-power-of-Django.pptxUnleash-the-power-of-Django.pptx
Unleash-the-power-of-Django.pptx
 
Django
DjangoDjango
Django
 
Company Visitor Management System Report.docx
Company Visitor Management System Report.docxCompany Visitor Management System Report.docx
Company Visitor Management System Report.docx
 
Top 10 python frameworks for web development in 2020
Top 10 python frameworks for web development in 2020Top 10 python frameworks for web development in 2020
Top 10 python frameworks for web development in 2020
 
CTE 323 - Lecture 1.pptx
CTE 323 - Lecture 1.pptxCTE 323 - Lecture 1.pptx
CTE 323 - Lecture 1.pptx
 
Basic Python Django
Basic Python DjangoBasic Python Django
Basic Python Django
 
Django
Django Django
Django
 
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)
 
Django Framework Interview Guide - Part 1
Django Framework Interview Guide - Part 1Django Framework Interview Guide - Part 1
Django Framework Interview Guide - Part 1
 
Django Workflow and Architecture
Django Workflow and ArchitectureDjango Workflow and Architecture
Django Workflow and Architecture
 
What is Django Technology and How is it Used
What is Django Technology and How is it UsedWhat is Django Technology and How is it Used
What is Django Technology and How is it Used
 
Webface - Passion is Innovation
Webface - Passion is InnovationWebface - Passion is Innovation
Webface - Passion is Innovation
 
Top 11 Front-End Web Development Tools To Consider in 2020
 Top 11 Front-End Web Development Tools To Consider in 2020 Top 11 Front-End Web Development Tools To Consider in 2020
Top 11 Front-End Web Development Tools To Consider in 2020
 
Django
DjangoDjango
Django
 
Django framework
Django frameworkDjango framework
Django framework
 
Ramya devi R internet of things
Ramya devi R internet of thingsRamya devi R internet of things
Ramya devi R internet of things
 
NestJS or Django: A Comparative Study of Web Frameworks
NestJS or Django: A Comparative Study of Web FrameworksNestJS or Django: A Comparative Study of Web Frameworks
NestJS or Django: A Comparative Study of Web Frameworks
 
Django Framework Overview forNon-Python Developers
Django Framework Overview forNon-Python DevelopersDjango Framework Overview forNon-Python Developers
Django Framework Overview forNon-Python Developers
 
Advantages Of Using Django Framework To Build Scalable.pdf
Advantages Of Using Django Framework To Build Scalable.pdfAdvantages Of Using Django Framework To Build Scalable.pdf
Advantages Of Using Django Framework To Build Scalable.pdf
 
Project report for final year project
Project report for final year projectProject report for final year project
Project report for final year project
 

Recently uploaded

Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
Zilliz
 

Recently uploaded (20)

Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
 

Django Seminar

  • 1. Submitted To Dr. Yashpal Singh HEAD (Computer Science & Engg.) B.I.E.T. Jhansi Submitted By Yokesh Computer Science & Engg. (3rd Year) Roll No - 14043100601
  • 2. CONTENTS 1) What is Django ? 2) What is MTV ? Difference b/w MTV and MVC? 3) Models , Templates and Views 4) Installation of Django 5) Creating Project ,Apps & Folder Structure 6) Django Database API 7) Advantages 8) Conclusion 2
  • 3. What is Django ? 1. It is a free and open-source web framework, written in Python, which follows the model-view- template (MVT) architectural pattern. 2. It is maintained by the Django Software Foundation (DSF). 3. Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. 4. Django makes it easer to build better web apps quickly and with less code. 3
  • 4. What is MVT ? “It is basically an combination of model , template and view clubbed together for developing a web project in a new modular approach. “ 4
  • 5. Difference b/w MTV and MVC? M stands for “Model,” the data access layer. T stands for “Template,” the presentation layer. V stands for “View,” the business logic layer and MVT Architecture M stands for “Model,” the data access layer. V stands for “View,” the presentation layer. C stands for “Controller, ” the business logic layer. MVC Architecture 5
  • 6. Models , Templates and Views  Model A model is a class that represents table or collection in our DB, and where every attribute of the class is a field of the table or collection. They essentially , define your database layout, with additional metadata. 6
  • 7.  View This is the portion of the framework describes the logic which is to be followed when a user hits any particular url. Models , Templates and Views Urls.py Views.py 7
  • 8. Models , Templates and Views  Template The UI part ,or the visible part 8
  • 9. Installation & Folder Structure 1. Creation of Virtual environment 2. Moving into virtualenv and starting the djangoproject 3. Now we have the following Project directory structure 9
  • 10. Installation & Folder Structure 4. Creating an app and adding the app to the setting.py file 5. App Directory Structure 6. Running the Server 10
  • 11. Django Database API Running the interactive database API shell Performing Operations on Models  Creation of new entry in the model  Filtering out entries from a particular model Support For various Databases Like PostgreSQL Oracle SQLite3 11
  • 12. Advantages 1)Object-Relational Mapping (ORM) Support: Django rovides a bridge between the data model and the database engine, and supports a large set of database systems including MySQL, Oracle, Postgres, etc. 2)Multilingual Support: Django supports multilingual websites through its built-in internationalization system. So we can develop our website, which would support multiple languages. 12
  • 13. Advantages 3)Administration GUI: Django provides a nice ready-to- use user interface for administrative activities. 4)Development Environment: Django comes with a lightweight web server to facilitate end-to-end application development and testing. 13
  • 14. Who uses Django ?? Nasa official website  Bitbucket  Pinterest  Spotify  Instagram 14
  • 15. Conclusion Although Today we are having a large no of available framework to choose from for web development ,Django takes cares of all the security aspects the users has to not worry about the different attacks. The inbuilt Database api is really very handy because it gives us an total overview before implementing actual logic what we are doing so it is too much helpful. 15