SlideShare a Scribd company logo
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Agenda
✓ What is a Web Framework?
✓ What is Python Django?
✓ Features of Django
✓ Big Players who use Django
✓ Django Installation
✓ How does Django work?
✓ Get Started with Django
✓ Demo - Login Application
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What is a Web Framework?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What is Web Framework?
Web frameworks provide tools
and libraries to simplify common
web development operations.
Solves the problem and it will
make your life a lot easier.
Add our piece of
code.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What is Python Django?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What is Python Django?
 Django is an open source web framework that follows the principle of “Don’t Repeat Yourself”.
 Django web framework is written on quick and powerful Python language.
 It follows MVC-MVT architectural pattern, which greatly helps in building clean and maintainable web
applications
 The framework was named after guitarist Django Reinhardt.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Main Advantages of Django
Tight Integration between Components
Object-Relational Mapper (ORM)
➢ ORM stands for Object-relational Mapper.
Define your data models entirely in
Python.
➢ Django provides a set of tightly integrated
components. These components have been
developed by the Django team themselves.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Main Advantages of Django
Automatic Administration Interface
Multi-Lingual Support
➢ Django offers full support for translating text into
different languages, plus locale-specific formatting
of dates, times, numbers and time zones.
Django provides a powerful and
production-ready interface that can be
used to manage content on your site.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
History of Django
Django started as an internal project
at Lawrence Journal-World
newspaper in 2003.
In 2005, Django became mature
enough to handle several high
traffic sites.
Django is an Open Source project
and it is used all over the world.
Django was created to meet the
fast deadlines of journalism
websites.
The developers decided to release
it to the public as an Open Source
project.
The project was named after the
jazz guitarist Django Reinhardt.
1
3
5
4
6
2
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Features of Django
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Features of Django
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Features of Django
Fast
Django was designed to help developers take applications
from concept to completion as quickly as possible.
Tons of Packages
Django includes dozens of extras you can use to handle
common Web development tasks.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Features of Django
Secure
Django helps developers to avoid many common security
mistakes, such as SQL injection, cross-site scripting, cross-
site request forgery and clickjacking.
Scalable
Django scale to meet the heaviest traffic demands quickly.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Features of Django
Versatile
Django is used to build all sort of things - from content
management systems to social networks to scientific
computing platforms.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Big Players who use Django
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Big Players who use Django
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Installation
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Installation
Django can be installed on the system using Python’s package manager.
▪ You must have python and pip, python’s package manager installed beforehand
▪ Open the terminal and type the following command for Django installation.
pip install django==1.11
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Installation
Go to the link:
https://www.djangoproject.
com/download/
1
2 Install the latest
version of Django
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
How does Django Work?
Let’s understand the MVC Pattern
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Model View Controller
MVC is a software design pattern for developing web applications.
Model
View
Controller
RequestModel : Storing and Maintenance of Data
View : Displaying the requested portion of data to the user
Controller : Regulates the interactions between the Model
and the View
1
2
3
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
MVC-MVT Pattern
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Django MVC-MVT Pattern
➢ MVC is slightly different from MVT as Django itself takes care of the Controller part.
➢ It leaves the template which is a HTML file mixed with Django Template Language (DTL).
Model
View
Template
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Architecture
The developer provides the Model, the view and the template then just maps it to a URL
and Django does the magic to serve it to the user.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Demo
Now, let’s create your first basic Web App
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Create a Project
$ django-admin startproject myproject
Open the terminal and navigate to the folder where the project is to be created.
Myproject/
manage.py
myproject/
__init__.py
settings.py
urls.py
wsgi.py
This will create a "myproject" folder with the following structure:
1
2
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Hands on
Now, let’s create a basic Web App
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Your First Web App
Hurray! We have successful created a basic Web App.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Project – Login Application
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Your First Web App
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Session In A Minute
Django Introduction
Login ApplicationHow Django works?Installation
Who uses Django?Features of Django
Copyright © 2017, edureka and/or its affiliates. All rights reserved.Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.

More Related Content

PDF
Why Should we use Microsoft's Playwright
PDF
Python Django tutorial | Getting Started With Django | Web Development With D...
PDF
Django Tutorial | Django Web Development With Python | Django Training and Ce...
PDF
Django Rest Framework | How to Create a RESTful API Using Django | Django Tut...
PDF
Django Introduction & Tutorial
PDF
Introduction to react native
PPTX
Basic Python Django
PDF
Introducing Playwright's New Test Runner
Why Should we use Microsoft's Playwright
Python Django tutorial | Getting Started With Django | Web Development With D...
Django Tutorial | Django Web Development With Python | Django Training and Ce...
Django Rest Framework | How to Create a RESTful API Using Django | Django Tut...
Django Introduction & Tutorial
Introduction to react native
Basic Python Django
Introducing Playwright's New Test Runner

What's hot (20)

PDF
Action Jackson! Effective JSON processing in Spring Boot Applications
PDF
ヤフーの広告レポートシステムをSpring Cloud Stream化するまで #jjug_ccc #ccc_a4
PPTX
React native
PPTX
PDF
Spring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
PDF
Postman: An Introduction for Testers
PDF
NodeJS for Beginner
PDF
Intro to web scraping with Python
PPTX
Web Scraping With Python
PPTX
PHPUnit - Unit testing
PDF
Introduction to Django REST Framework, an easy way to build REST framework in...
PDF
Playwright Begginers Presentation
PDF
React Router: React Meetup XXL
PDF
【SQLインジェクション対策】徳丸先生に怒られない、動的SQLの安全な組み立て方
PDF
Sql Antipatterns Strike Back
PDF
Cypress e2e automation testing - day1 intor by: Hassan Hameed
PPTX
REST API Design & Development
PDF
Clean Architecture
PDF
Cypress, Playwright, Selenium, or WebdriverIO? Let the Engineers Speak!
PPTX
Introduction to Integration Testing With Cypress
Action Jackson! Effective JSON processing in Spring Boot Applications
ヤフーの広告レポートシステムをSpring Cloud Stream化するまで #jjug_ccc #ccc_a4
React native
Spring I/O 2012: Natural Templating in Spring MVC with Thymeleaf
Postman: An Introduction for Testers
NodeJS for Beginner
Intro to web scraping with Python
Web Scraping With Python
PHPUnit - Unit testing
Introduction to Django REST Framework, an easy way to build REST framework in...
Playwright Begginers Presentation
React Router: React Meetup XXL
【SQLインジェクション対策】徳丸先生に怒られない、動的SQLの安全な組み立て方
Sql Antipatterns Strike Back
Cypress e2e automation testing - day1 intor by: Hassan Hameed
REST API Design & Development
Clean Architecture
Cypress, Playwright, Selenium, or WebdriverIO? Let the Engineers Speak!
Introduction to Integration Testing With Cypress
Ad

Similar to What is Django | Django Tutorial for Beginners | Python Django Training | Edureka (20)

PDF
Django interview Questions| Edureka
PDF
Django Tutorial_ Let’s take a deep dive into Django’s web framework.pdf
PDF
Django in Action (MEAP V01) Christopher Trudeau
PDF
Django
PDF
Introduction to django framework
PPTX
1-_Introduction_To_Django_Model_and_Database (1).pptx
PPTX
Introduction to Django
PPTX
Concepts and applications of Django.pptx
PPTX
Django Framework Interview Guide - Part 1
PPTX
Unleash-the-power-of-Django.pptx
PPTX
Django part 1
PPTX
Introduction to DJANGO, a creative framework
PDF
Django Workflow and Architecture
PDF
Django Web Development: Simplifying the Path to Robust Web Applications
PDF
Django Documentation
PDF
Why Django is The Go-To Framework For Python.pdf
PPTX
Introduction and features to Django.pptx
PDF
Django in Action (MEAP V01) Christopher Trudeau
PPTX
Django Introdcution
PPTX
Django Framework Overview forNon-Python Developers
Django interview Questions| Edureka
Django Tutorial_ Let’s take a deep dive into Django’s web framework.pdf
Django in Action (MEAP V01) Christopher Trudeau
Django
Introduction to django framework
1-_Introduction_To_Django_Model_and_Database (1).pptx
Introduction to Django
Concepts and applications of Django.pptx
Django Framework Interview Guide - Part 1
Unleash-the-power-of-Django.pptx
Django part 1
Introduction to DJANGO, a creative framework
Django Workflow and Architecture
Django Web Development: Simplifying the Path to Robust Web Applications
Django Documentation
Why Django is The Go-To Framework For Python.pdf
Introduction and features to Django.pptx
Django in Action (MEAP V01) Christopher Trudeau
Django Introdcution
Django Framework Overview forNon-Python Developers
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
PDF
Top 5 Trending Business Intelligence Tools | Edureka
PDF
Tableau Tutorial for Data Science | Edureka
PDF
Python Programming Tutorial | Edureka
PDF
Top 5 PMP Certifications | Edureka
PDF
Top Maven Interview Questions in 2020 | Edureka
PDF
Linux Mint Tutorial | Edureka
PDF
How to Deploy Java Web App in AWS| Edureka
PDF
Importance of Digital Marketing | Edureka
PDF
RPA in 2020 | Edureka
PDF
Email Notifications in Jenkins | Edureka
PDF
EA Algorithm in Machine Learning | Edureka
PDF
Cognitive AI Tutorial | Edureka
PDF
AWS Cloud Practitioner Tutorial | Edureka
PDF
Blue Prism Top Interview Questions | Edureka
PDF
Big Data on AWS Tutorial | Edureka
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
PDF
Kubernetes Installation on Ubuntu | Edureka
PDF
Introduction to DevOps | Edureka
What to learn during the 21 days Lockdown | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Tableau Tutorial for Data Science | Edureka
Python Programming Tutorial | Edureka
Top 5 PMP Certifications | Edureka
Top Maven Interview Questions in 2020 | Edureka
Linux Mint Tutorial | Edureka
How to Deploy Java Web App in AWS| Edureka
Importance of Digital Marketing | Edureka
RPA in 2020 | Edureka
Email Notifications in Jenkins | Edureka
EA Algorithm in Machine Learning | Edureka
Cognitive AI Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Blue Prism Top Interview Questions | Edureka
Big Data on AWS Tutorial | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Kubernetes Installation on Ubuntu | Edureka
Introduction to DevOps | Edureka

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
KodekX | Application Modernization Development
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
PDF
Modernizing your data center with Dell and AMD
PPTX
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
PDF
Advanced IT Governance
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Empathic Computing: Creating Shared Understanding
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
cuic standard and advanced reporting.pdf
Review of recent advances in non-invasive hemoglobin estimation
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Dropbox Q2 2025 Financial Results & Investor Presentation
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
GamePlan Trading System Review: Professional Trader's Honest Take
Reach Out and Touch Someone: Haptics and Empathic Computing
Per capita expenditure prediction using model stacking based on satellite ima...
KodekX | Application Modernization Development
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
AI And Its Effect On The Evolving IT Sector In Australia - Elevate
Modernizing your data center with Dell and AMD
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Advanced IT Governance
20250228 LYD VKU AI Blended-Learning.pptx
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...

What is Django | Django Tutorial for Beginners | Python Django Training | Edureka

  • 1. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
  • 2. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Agenda ✓ What is a Web Framework? ✓ What is Python Django? ✓ Features of Django ✓ Big Players who use Django ✓ Django Installation ✓ How does Django work? ✓ Get Started with Django ✓ Demo - Login Application
  • 3. Copyright © 2017, edureka and/or its affiliates. All rights reserved. What is a Web Framework?
  • 4. Copyright © 2017, edureka and/or its affiliates. All rights reserved. What is Web Framework? Web frameworks provide tools and libraries to simplify common web development operations. Solves the problem and it will make your life a lot easier. Add our piece of code.
  • 5. Copyright © 2017, edureka and/or its affiliates. All rights reserved. What is Python Django?
  • 6. Copyright © 2017, edureka and/or its affiliates. All rights reserved. What is Python Django?  Django is an open source web framework that follows the principle of “Don’t Repeat Yourself”.  Django web framework is written on quick and powerful Python language.  It follows MVC-MVT architectural pattern, which greatly helps in building clean and maintainable web applications  The framework was named after guitarist Django Reinhardt.
  • 7. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Main Advantages of Django Tight Integration between Components Object-Relational Mapper (ORM) ➢ ORM stands for Object-relational Mapper. Define your data models entirely in Python. ➢ Django provides a set of tightly integrated components. These components have been developed by the Django team themselves.
  • 8. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Main Advantages of Django Automatic Administration Interface Multi-Lingual Support ➢ Django offers full support for translating text into different languages, plus locale-specific formatting of dates, times, numbers and time zones. Django provides a powerful and production-ready interface that can be used to manage content on your site.
  • 9. Copyright © 2017, edureka and/or its affiliates. All rights reserved. History of Django Django started as an internal project at Lawrence Journal-World newspaper in 2003. In 2005, Django became mature enough to handle several high traffic sites. Django is an Open Source project and it is used all over the world. Django was created to meet the fast deadlines of journalism websites. The developers decided to release it to the public as an Open Source project. The project was named after the jazz guitarist Django Reinhardt. 1 3 5 4 6 2
  • 10. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Features of Django
  • 11. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Features of Django
  • 12. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Features of Django Fast Django was designed to help developers take applications from concept to completion as quickly as possible. Tons of Packages Django includes dozens of extras you can use to handle common Web development tasks.
  • 13. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Features of Django Secure Django helps developers to avoid many common security mistakes, such as SQL injection, cross-site scripting, cross- site request forgery and clickjacking. Scalable Django scale to meet the heaviest traffic demands quickly.
  • 14. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Features of Django Versatile Django is used to build all sort of things - from content management systems to social networks to scientific computing platforms.
  • 15. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Big Players who use Django
  • 16. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Big Players who use Django
  • 17. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Installation
  • 18. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Installation Django can be installed on the system using Python’s package manager. ▪ You must have python and pip, python’s package manager installed beforehand ▪ Open the terminal and type the following command for Django installation. pip install django==1.11
  • 19. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Installation Go to the link: https://www.djangoproject. com/download/ 1 2 Install the latest version of Django
  • 20. Copyright © 2017, edureka and/or its affiliates. All rights reserved. How does Django Work? Let’s understand the MVC Pattern
  • 21. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Model View Controller MVC is a software design pattern for developing web applications. Model View Controller RequestModel : Storing and Maintenance of Data View : Displaying the requested portion of data to the user Controller : Regulates the interactions between the Model and the View 1 2 3
  • 22. Copyright © 2017, edureka and/or its affiliates. All rights reserved. MVC-MVT Pattern
  • 23. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Django MVC-MVT Pattern ➢ MVC is slightly different from MVT as Django itself takes care of the Controller part. ➢ It leaves the template which is a HTML file mixed with Django Template Language (DTL). Model View Template
  • 24. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Architecture The developer provides the Model, the view and the template then just maps it to a URL and Django does the magic to serve it to the user.
  • 25. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Demo Now, let’s create your first basic Web App
  • 26. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Create a Project $ django-admin startproject myproject Open the terminal and navigate to the folder where the project is to be created. Myproject/ manage.py myproject/ __init__.py settings.py urls.py wsgi.py This will create a "myproject" folder with the following structure: 1 2
  • 27. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Hands on Now, let’s create a basic Web App
  • 28. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Your First Web App Hurray! We have successful created a basic Web App.
  • 29. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Project – Login Application
  • 30. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Your First Web App
  • 31. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Session In A Minute Django Introduction Login ApplicationHow Django works?Installation Who uses Django?Features of Django
  • 32. Copyright © 2017, edureka and/or its affiliates. All rights reserved.Copyright © 2017, edureka and/or its affiliates. All rights reserved.
  • 33. Copyright © 2017, edureka and/or its affiliates. All rights reserved.