Django Design Patterns and Best Practices Second Edition

Arun Ravindran

買這商品的人也買了...

相關主題

商品描述

Build maintainable websites with elegant Django design patterns and modern best practices

Key Features

  • Deep dive into various aspects of Django from Models and Views to testing and deployment
  • Familiarize yourself with the various nuances of web development such as browser attacks and data design
  • Guides you through various asynchronous tools like Celery, Channels.

Book Description

Building secure and maintainable web applications requires extensive knowledge of several areas. This book is not just a guide to tackle such difficult topics beyond Django but also encapsulates years of experience in the form of design patterns and best practices. Rather than stick to GoF design patterns, this book looks broadly at higher-level patterns in web development.

Using the latest version of Django and Python, this book fast track you to current developments like Channels and asyncio while building adequate conceptual background. It compares various design choices that will help you in making everyday decisions in a rapidly changing environment.

You will first learn about various architectural patterns, many of which are used to build Django itself. Start from the very beginnings of a fun superhero project by gathering requirements, creating mockups, and setting up the project. Through project-guided examples, you will explore the Model, View, templates, workflows and code reusability techniques. Throughout this book, you will learn practical Python coding techniques in Django that will enable you to tackle problems related to complex topics like legacy coding, data modelling, code reusability and so on.

You will also explore API design principles and best practices and understand the need for asynchronous workflows in websites. You will also learn popular Python code testing techniques in Django, various web security threats and their countermeasures, and go into the details of monitoring and performance of your application

What you will learn

  • Understand common design patterns that can help you write better Django code
  • Discover the latest best practices and idioms in this rapidly evolving framework
  • Deep dive into various aspects of Django from Models and Views to testing and deployment
  • Get to grips with difficult topics such as dealing with legacy code and debugging
  • Familiarize yourself with the various nuances of web development such as browser attacks and data design
  • Guides you through various asynchronous tools like Celery, Channels and asyncio
  • Shows various patterns while designing an API interface with Django Rest Framework
  • Reduce the maintenance burden with well-tested, cleaner code
  • Show your work to the world by learning about hosting, deploying, and securing your Django projects

Who This Book Is For

The ideal target audience for this book would be Python Developers who are using Python for developing complex web applications and new Django developers who are trying to learn best practices.