Learn how to rapidly build your own ecommerce site by applying Django’s battle-tested components. This book demonstrates Django’s features and conventions to help you develop modern web applications quickly. You'll adopt a "learn by doing" approach and gain a deeper understanding Django by working through a project in which the real-time component will be critical.
The book starts with the basics and explains the difference between a Django project and a Django app, the most important settings, how to change them, and the fundamentals of packaging. You'll then be introduced to all the standard tools of Django, along with a sample project. The book then moves on to Channels, a recent addition to the Django ecosystem. It extends the framework with support for real-time operations such as Websockets and other asynchronous features.
Practical Django 2 and Channels 2 provides the practical concepts needed to create complex, database-driven websites as easily as possible.
What You'll Learn
• Build and deploy a simple company site with Django
• Develop more complex, data-heavy sites using the Django ORM
• Integrate Django with Channels
• Unit-test your solutions
Who This Book Is For
Python developers and web developers wanting to learn Django 2 and Channels 2
Author(s): Federico Marani
Edition: 1
Publisher: Apress
Year: 2019
Language: English
Commentary: True PDF
Pages: 409
Tags: Analytics; Web Programming; Python; Mobile Development; Deployment; Redis; E-commerce; Django; CSS; WebSockets
Front Matter ....Pages i-xvi
Introduction to Django (Federico Marani)....Pages 1-22
Getting Started with a Simple Company Site (Federico Marani)....Pages 23-54
Adding the Product Catalog to the Site (Federico Marani)....Pages 55-109
A Checkout System for Receiving Orders Online (Federico Marani)....Pages 111-178
Adding CSS/JavaScript to Our Django Project (Federico Marani)....Pages 179-203
Using External Libraries in Our Project (Federico Marani)....Pages 205-234
Making an Internal Dashboard for the Company (Federico Marani)....Pages 235-278
Backend for a Mobile Customer-Service App (Federico Marani)....Pages 279-329
Mobile Customer-Service App (Federico Marani)....Pages 331-362
How to Deploy Django Sites (Federico Marani)....Pages 363-395
Back Matter ....Pages 397-409