Book Image

Mastering Django Web Development [Video]

By : Kevin Veroneau , Matthew Nuzum
Book Image

Mastering Django Web Development [Video]

By: Kevin Veroneau , Matthew Nuzum

Overview of this book

<p>Django is one of the world's leading web development platforms that follows the model-view-template development method. This Python web framework makes your app building experience smoother, faster, and easier. It has been and continues to be the key feature behind the success of many start-ups across the world.</p> <p>Mastering Django Web Development shows you how to use advanced concepts to help you build professional grade Django applications.</p> <p>We start off by learning how class-based views work so that you can fully benefit from this powerful, but often poorly understood feature. We’ll then create custom middleware which will help us better organize frequently used code.&nbsp;</p> <p>Have you ever wanted to build a complete REST API? We’ll do just that, starting out with a basic read-only API and then adding key-based authentication to allow the full range of CRUD functionality. We’ll also utilize model managers and the Q method so that we can make it easier to get the data we need to our views and clients.</p> <p>For the finishing touches, we’ll dive into the details of caching, to improve our application performance, and then add custom management commands to help us automate routine tasks.</p> <p>By the end of this video course, you will emerge a Django expert.&nbsp;</p> <h1>Style and Approach</h1> <p>Fine-tune your knowledge of Django with the help of these bite-size videos that will take you through the advanced concepts of this technology coupled with a practical implementation.&nbsp;</p>
Table of Contents (7 chapters)
Chapter 2
Custom Middleware
Content Locked
Section 2
Creating a Custom Middleware
Middleware classes are not fancy; they simply have one or more methods that correspond to one of the five predefined hooks available. Let's take a closer look at them here. - Decide which hooks your middleware should implement - Create a standard- or new-style class - Define a method corresponding to the hooks you want