Create unbelievably fast, robust and secure web apps with Django Web Framework and Python 3.6
Key FeaturesDiscover solutions to a variety of web application scenarios, leveraging the power of the Django frameworkUnderstand URL routing, models, forms, templates, and RESTful services with Django 2.14Test, deploy, and scale your web applications efficiently with Amazon Web ServicesBook DescriptionDjango is a framework designed to balance rapid web development with high performance. It handles high levels of user traffic and interaction, integrates with a variety of databases, and collects and processes data in real time. This book follows a task-based approach to guide you through developing with the Django 2.1 framework, starting with setting up and configuring Docker containers and a virtual environment for your project.
You'll learn how to write reusable pieces of code for your models and manage database changes. You'll work with forms and views to enter and list data, applying practical examples using templates and JavaScript together for the optimum user experience. This cookbook helps you to adjust the built-in Django administration to fit your needs and sharpen security and performance to make your web applications as robust, scalable, and dependable as possible. You'll also explore integration with Django CMS, the popular content management suite.
In the final chapters, you'll learn programming and debugging tricks and discover how collecting data from different sources and providing it to others in various formats can be a breeze. By the end of the book, you'll learn how to test and deploy projects to a remote dedicated server and scale your application to meet user demands.
What you will learnGet started with the basic configuration necessary to start any Django projectBuild a database structure out of reusable model mixinsSecure web applications against malicious usage and address common performance bottlenecksIntegrate with, and extend, the Django CMSConstruct and manage complex and deep hierarchiesImport data from local sources and external web services and export it to third partiesWho this book is forThis book is designed for Python developers working on fast and secure web apps that can scale over time. You’ll also find this book useful if you want to upgrade to latest Django framework. A background in Python 3 along with basic knowledge of the Django framework will be useful.
Table of ContentsGetting Started with Django 2.1Database Structure and Modeling Forms and ViewsTemplates and JavaScriptCustom Template Filters and TagsModel AdministrationSecurity and PerformanceDjango CMSHierarchical StructuresImporting and Exporting Data Bells and WhistlesTesting and Deployment
I invited Jake to write the third edition of the Web Development with Django Cookbook because he had been very detail-oriented and precise when reviewing the second edition of this book. His knowledge and way of thinking improved the second edition a lot, so I was certain that he won't disappoint the readers of the update.
In this new edition, not only all code and descriptions were adapted for Django 2.1 and Python 3, but he added a lot of new snippets and examples of better practices, like working with Docker, using Redis for caching, implementing hierarchical structures with django-treebeard, applying watermarks to copyrighted images, authenticating with Auth0, etc.
Jake also improved the continuity of the code and resulting screenshots. With many details revised, the book was elevated to the whole new level.