SlideShare ist ein Scribd-Unternehmen logo
1 von 17
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

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to django
Introduction to djangoIntroduction to django
Introduction to django
Ilian Iliev
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
洪 鹏发
 

Was ist angesagt? (20)

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...
 
Django Girls Tutorial
Django Girls TutorialDjango Girls Tutorial
Django Girls Tutorial
 
Introduction to django
Introduction to djangoIntroduction to django
Introduction to django
 
Django by rj
Django by rjDjango by rj
Django by rj
 
Django - Python MVC Framework
Django - Python MVC FrameworkDjango - Python MVC Framework
Django - Python MVC Framework
 
Presentation on Core java
Presentation on Core javaPresentation on Core java
Presentation on Core java
 
Angularjs PPT
Angularjs PPTAngularjs PPT
Angularjs PPT
 
Introduction to Django Rest Framework
Introduction to Django Rest FrameworkIntroduction to Django Rest Framework
Introduction to Django Rest Framework
 
Core Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika TutorialsCore Java Tutorials by Mahika Tutorials
Core Java Tutorials by Mahika Tutorials
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
 
JavaFX Presentation
JavaFX PresentationJavaFX Presentation
JavaFX Presentation
 
Javascript
JavascriptJavascript
Javascript
 
Angular Introduction By Surekha Gadkari
Angular Introduction By Surekha GadkariAngular Introduction By Surekha Gadkari
Angular Introduction By Surekha Gadkari
 
Angular - Chapter 1 - Introduction
 Angular - Chapter 1 - Introduction Angular - Chapter 1 - Introduction
Angular - Chapter 1 - Introduction
 
Java Server Pages(jsp)
Java Server Pages(jsp)Java Server Pages(jsp)
Java Server Pages(jsp)
 
Spring ppt
Spring pptSpring ppt
Spring ppt
 
Hibernate ppt
Hibernate pptHibernate ppt
Hibernate ppt
 
Spring boot
Spring bootSpring boot
Spring boot
 
Django Introduction & Tutorial
Django Introduction & TutorialDjango Introduction & Tutorial
Django Introduction & Tutorial
 
PHP Project PPT
PHP Project PPTPHP Project PPT
PHP Project PPT
 

Ähnlich wie 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
 

Ähnlich wie 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 PPT.pptx
Django PPT.pptxDjango PPT.pptx
Django PPT.pptx
 
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 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
 

Kürzlich hochgeladen

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Kürzlich hochgeladen (20)

A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 

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