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 5
Advanced Databases Modeling
Content Locked
Section 1
Generic Relationships
Sometimes, you want to combine data from different models. It's not hard to do this with Python, but generic relationships allow Django to do this for you. - Include the ContentType and GenericForeignKey modules - Define a model that has GenericForeignKey - Ensure that the GenericForeignKey keys are all the same datatype