Django 2.0 Tutorial Pdf
Book Name: Building Django 2.0 Web Applications
Author: Tom Aratyn
ISBN-10: 978-1787286214
Year: 2018
Pages: 408
Language: English
File size: 2.32 MB
File format: PDF
Django tutorial: Get started with Django 2.0 Get up and running with routes, views, and templates in Python’s most popular web framework. In this tutorial, we will use Django Channels to create a real-time application that updates a list of users as they log in and out. With WebSockets (via Django Channels) managing the communication between the client and the server, whenever a user is authenticated, an event will be broadcasted to every other connected user. The Django Book The Django Book Table of contents Beta, English Chapter 1: Introduction to Django October 30, 2006 Chapter 2: Getting started October 30, 2006 Chapter 3: The basics of generating Web pages November 6, 2006 Chapter 4: The Django template system November 7, 2006 Chapter 5: Interacting with a database: models November 13, 2006 Chapter 6: The Django.
Go from the initial idea to a production-deployed web app using Django 2.0.
Key Features
- A beginners guide to learning python’s most popular framework, Django
- Build fully featured web projects in Django 2.0 through examples.
- Deploy web applications in quick and reliable fashion with Docker
Building Django 2.0 Web Applications Book Description
This project-based guide will give you a sound understanding of Django 2.0 through three full-featured applications. It starts off by building a basic IMDB clone and adding users who can register, vote on their favorite movies, and upload associated pictures. You will learn how to use the votes that your users have cast to build a list of the top 10 movies. This book will also take you through deploying your app into a production environment using Docker containers hosted on the server in Amazon’s Electric Computing Cloud (EC2).
Next, you’re going to build a Stack Overflow clone wherein registered users can ask and answer questions. You will learn how to enable a user asking a question to accept answers and mark them as useful. You will also learn how to add search functionality to help users find questions by using ElasticSearch. You’ll discover ways to apply the principles of 12 factor apps while deploying Django on the most popular web server, Apache, with mod_wsgi. Lastly, you’ll build a clone of MailChimp so users can send and create emails, and deploy it using AWS.
Get set to take your basic Django skills to the next level with this comprehensive guide!
What you will learn
- Build new projects from scratch using Django 2.0
- Provide full-text searching using ElasticSearch and Django 2.0
- Learn Django 2.0 security best practices and how they’re applied
- Deploy a full Django 2.0 app almost anywhere with mod_wsgi
- Deploy a full Django 2.0 app to AWS’s PaaS Elastic Beanstalk
- Deploy a full Django 2.0 app with Docker
- Deploy a full Django 2.0 app with NGINX and uWSGI
Who This Book Is For
If you have some basic knowledge of HTML, CSS, and Python and want to build fully-featured and secure applications using Django, then this book is for you.
Table of Contents
- Building MyMDB
- Adding Users to MyMDB
- Posters, Headshots, & Security
- Caching in on the Top 10
- Deploying with Docker
- Starting Answerly
- Searching for Questions with Elasticsearch
- Testing Answerly
- Deploying Answerly
- Starting Mail Ape
- The Task of Sending Emails
- Building an API
- Deploying Mail Ape
Django is a highly popular, free open-source high-level Python web framework. It follows the MVT (Model-View-Template) architecture and helps in the development and maintenance of high quality web applications. The primary reason for its popularity is its encouragement for rapid development with the help of pragmatic design. This fully featured server-side web framework eases the web development process and eventually helps in the saving you a lot of time. It also involves less coding which is another benefit for the developers.
[post_middile_section_ad]
Django Software Foundation is the one responsible for the maintenance of Django framework. Well, it is licensed under the BSD license.
This tutorial will help you to understand the Django framework completely.
Who Is It For?
This tutorial is designed for those who want to learn to develop high quality web applications with the help of Django. We will be starting with the basics of Django and finally move towards the complicated concepts of the framework.
What Are The Required Prerequisites?
There are a few concepts you should be aware of before we can proceed ahead. Take a look at the below list to understand what are the required prerequisites of this tutorial:
* Basic understanding of object oriented and procedural programming concepts which includes:
data structure and associated variables, control structure, class and its objects, etc.
Django’s History
The timeline of the evolution of Django is given below:
2003: Two of the web programmers of Lawrence Journal-World newspaper built Django when they started working on Python. These were Adrian Holovaty and Simon Willison. The framework is named after the famous Belgian-French jazz guitarist, Django Reinhardt.
2005: Django framework got licensed under the BSD (Berkeley Software Distribution) license.
2008: The maintenance of the Django framework was handed over to Django Software Foundation (DSF).
[post_middile_section_ad]
Current Scenario: It emerged as an open source project for all the contributors around the world participating in the betterment of the framework.
Design Philosophies of Django
There are a few design policies of Django that you should be aware of before we step forward in the process of Django learning.
* Loose Coupling: The principle makes sure that the different layers (or various elements of the stack) of the framework stay independent of each other until there’s an absolute necessity of it. In other words, it follows the concept of “loose coupling and tight cohesion”.
Django Full Tutorial Pdf
* Use of Less Code: It is known for making full utilization of the dynamic nature of Python. Thus, it focuses more on using minimum coding possible.
* Quick Web Development: The framework facilitates you with the fastest web development.
* DRY – Don’t Repeat Yourself: It eliminates the concept of redundancy by keeping every part of the code in “one place only”.
* Consistency: This framework makes sure that the consistency remains from the low level to the high level of the web development.
Django 1.11 Tutorial
* Clean and Pragmatic Design: Throughout your web development, there will be a strict maintenance of clean design.