Book Image

Django Design Patterns and Best Practices - Second Edition

By : Arun Ravindran
Book Image

Django Design Patterns and Best Practices - Second Edition

By: Arun Ravindran

Overview of this book

Building secure and maintainable web applications requires comprehensive knowledge. The second edition of this book not only sheds light on Django, but also encapsulates years of experience in the form of design patterns and best practices. Rather than sticking to GoF design patterns, the book looks at higher-level patterns. Using the latest version of Django and Python, you’ll learn about Channels and asyncio while building a solid conceptual background. The book compares design choices to help you make everyday decisions faster in a rapidly changing environment. You’ll first learn about various architectural patterns, many of which are used to build Django. You’ll start with building a fun superhero project by gathering the requirements, creating mockups, and setting up the project. Through project-guided examples, you’ll explore the Model, View, templates, workflows, and code reusability techniques. In addition to this, you’ll learn practical Python coding techniques in Django that’ll enable you to tackle problems related to complex topics such as legacy coding, data modeling, and code reusability. You’ll discover API design principles and best practices, and understand the need for asynchronous workflows. During this journey, you’ll study popular Python code testing techniques in Django, various web security threats and their countermeasures, and the monitoring and performance of your application.
Table of Contents (21 chapters)
Title Page
Copyright and Credits
PacktPub.com
Contributors
Preface
Index

Appendix 2. Other Books You May Enjoy

If you enjoyed this book, you may be interested in these other books by Packt:

Django RESTful Web Services Gastón C. Hillar

ISBN: 978-1-78883-392-9

  • The best way to build a RESTful Web Service or API with Django and the Django REST Framework
  • Develop complex RESTful APIs from scratch with Django and the Django REST Framework
  • Work with either SQL or NoSQL data sources
  • Design RESTful Web Services based on application requirements
  • Use third-party packages and extensions to perform common tasks
  • Create automated tests for RESTful web services
  • Debug, test, and profile RESTful web services with Django and the Django REST Framework

Building Django 2.0 Web Applications Tom Aratyn

ISBN: 978-1-78728-621-4

  • 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