1 / 34

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

This Edureka u201cWhat is Djangou201d tutorial will help you in understanding the fundamentals of Django and build a strong foundation in Django. It helps you to build a simple u2018hello worldu2019 application to our main Login application. Below are the topics covered in this tutorial: <br><br>1. What is a Web framework? <br>2. What is Python Django? <br>3. Features of Django <br>4. Big Players who Use Django <br>5. Django Installation <br>6. How does Django Work? <br>7. Get started With Django <br>8. Demo - Login Application

EdurekaIN
Télécharger la présentation

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

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  2. 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.

  3. What is a Web Framework? Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  4. What is Web Framework? Web frameworks provide tools Add our piece of Solves the problem and it will and libraries to simplify common code. make your life a lot easier. web development operations. Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  5. What is Python Django? Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  6. 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.

  7. Main Advantages of Django Object-Relational Mapper (ORM) ➢ ORM stands for Object-relational Mapper. Define your data models entirely in Python. Tight Integration between Components ➢ 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.

  8. Main Advantages of Django Automatic Administration Interface Django provides a powerful and production-ready interface that can be used to manage content on your site. Multi-Lingual Support ➢ Django offers full support for translating text into different languages, plus locale-specific formatting of dates, times, numbers and time zones. Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  9. History of Django Django started as an internal project at Lawrence Journal-World newspaper in 2003. 1 Django was created to meet the fast deadlines of journalism websites. 2 3 In 2005, Django became mature enough to handle several high traffic sites. The developers decided to release it to the public as an Open Source project. 4 The project was named after the jazz guitarist Django Reinhardt. 5 Django is an Open Source project and it is used all over the world. 6 Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  10. Features of Django Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  11. Features of Django Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  12. 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.

  13. 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.

  14. 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.

  15. Big Players who use Django Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  16. Big Players who use Django Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  17. Installation Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  18. 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.

  19. Installation Go to the link: 1 https://www.djangoproject. com/download/ Install the latest version of Django 2 Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  20. How does Django Work? Let’s understand the MVC Pattern Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  21. Model View Controller MVC is a software design pattern for developing web applications. Request Model : Storing and Maintenance of Data 1 View : Displaying the requested portion of data to the user 2 View Controller Controller : Regulates the interactions between the Model and the View 3 Model Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  22. MVC-MVT Pattern Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  23. Django MVC-MVT Pattern Model View Template ➢ 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). Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  24. 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.

  25. Demo Now, let’s create your first basic Web App Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  26. Create a Project 1 Open the terminal and navigate to the folder where the project is to be created. $ django-admin startproject myproject 2 This will create a "myproject" folder with the following structure: Myproject/ manage.py myproject/ __init__.py settings.py urls.py wsgi.py Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  27. Hands on Now, let’s create a basic Web App Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  28. Your First Web App Hurray! We have successful created a basic Web App. Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  29. Project – Login Application Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  30. Your First Web App Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  31. Session In A Minute Django Introduction Features of Django Who uses Django? How Django works? Login Application Installation Copyright © 2017, edureka and/or its affiliates. All rights reserved.

  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.

More Related