
Django 5 By Example
Build powerful and reliable Python web applications from scratch
Packt Publishing
5th Edition
Published on 30. April 2024
Book
Paperback/Softback
822 pages
978-1-80512-545-7 (ISBN)
Description
2025 EDITION: Build four fully functional real-world Django applications with authentication, content management systems, payment processing, REST APIs, and more!
Free with your book: DRM-free PDF version + access to Packt's next-gen Reader*
Key Features
Updated with the latest Django 5.2 features, detailed app planning, improved tooling, and GPT prompts for extending projects
Learn Django essentials, including models, ORM, views, templates, URLs, forms, authentication, signals, and middleware
Integrate JavaScript, PostgreSQL, Redis, Celery, Docker, and Memcached into your applications
Book DescriptionIf you want to learn Django by doing, this book is for you.
This 2025 EDITION, fully updated to Django 5.2 LTS, is the fifth edition of the best-selling Django By Example franchise that helps you build real-world web apps. This book will walk you through planning and creation, solving common problems, and implementing best practices using a step-by-step approach.
You'll cover a wide range of web application development topics through four different projects: a blog application, a social website, an e-commerce application, and an e-learning platform. Pick up what's new in Django 5 as you build end-to-end Python web apps, follow detailed project plans, and understand the hows and whys of Django.
This is a practical and approachable book that will have you creating web apps quickly.
*Email sign-up and proof of purchase required What you will learn
Use various Django modules to solve specific problems using the latest features
Integrate third-party Django applications into your project
Build complex web applications using Redis, Postgres, Celery/RabbitMQ and Memcached
Set up a production environment for your project with Docker Compose
Build a RESTful API with Django Rest Framework (DRF)
Implement advanced functionalities, such as full-text search engines, user activity streams, payment gateways, and recommender engines
Build real-time asynchronous (ASGI) apps with Django Channels and WebSockets
Who this book is forThis book is for readers with basic Python programming knowledge and programmers transitioning from other web frameworks who wish to learn Django by doing. If you already use Django, or have in the past, and want to learn best practices and integrate other technologies to scale your applications, then this book is for you too. This book will help you master the most relevant areas of the framework by building practical projects from scratch.
Some previous knowledge of HTML and JavaScript is assumed.
Free with your book: DRM-free PDF version + access to Packt's next-gen Reader*
Key Features
Updated with the latest Django 5.2 features, detailed app planning, improved tooling, and GPT prompts for extending projects
Learn Django essentials, including models, ORM, views, templates, URLs, forms, authentication, signals, and middleware
Integrate JavaScript, PostgreSQL, Redis, Celery, Docker, and Memcached into your applications
Book DescriptionIf you want to learn Django by doing, this book is for you.
This 2025 EDITION, fully updated to Django 5.2 LTS, is the fifth edition of the best-selling Django By Example franchise that helps you build real-world web apps. This book will walk you through planning and creation, solving common problems, and implementing best practices using a step-by-step approach.
You'll cover a wide range of web application development topics through four different projects: a blog application, a social website, an e-commerce application, and an e-learning platform. Pick up what's new in Django 5 as you build end-to-end Python web apps, follow detailed project plans, and understand the hows and whys of Django.
This is a practical and approachable book that will have you creating web apps quickly.
*Email sign-up and proof of purchase required What you will learn
Use various Django modules to solve specific problems using the latest features
Integrate third-party Django applications into your project
Build complex web applications using Redis, Postgres, Celery/RabbitMQ and Memcached
Set up a production environment for your project with Docker Compose
Build a RESTful API with Django Rest Framework (DRF)
Implement advanced functionalities, such as full-text search engines, user activity streams, payment gateways, and recommender engines
Build real-time asynchronous (ASGI) apps with Django Channels and WebSockets
Who this book is forThis book is for readers with basic Python programming knowledge and programmers transitioning from other web frameworks who wish to learn Django by doing. If you already use Django, or have in the past, and want to learn best practices and integrate other technologies to scale your applications, then this book is for you too. This book will help you master the most relevant areas of the framework by building practical projects from scratch.
Some previous knowledge of HTML and JavaScript is assumed.
More details
Edition
5th Revised edition
Language
English
Place of publication
Birmingham
United Kingdom
Target group
Professional and scholarly
US School Grade: College Graduate Student
Edition type
Revised edition
Dimensions
Height: 235 mm
Width: 191 mm
Thickness: 44 mm
Weight
1503 gr
ISBN-13
978-1-80512-545-7 (9781805125457)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Other editions
Additional editions

Antonio Mele | Paolo Melchiorre
Django 5 By Example
Build powerful and reliable Python web applications from scratch
E-Book
09/2024
5th Edition
Packt Publishing
€29.99
Available for download
Persons
Antonio Mele is Founder and CTO of Orbio AI, an agentic AI platform that empowers HR teams. He previously founded Nucoro, a fintech platform for building wealth management digital products, which was acquired by Backbase in 2023.
Antonio has been developing Django projects since 2006 for clients across several industries. In 2009 Antonio founded Zenx IT, a development company specialized in building digital products. He has been working as a CTO and technology consultant for multiple technology-based startups and he has managed development teams building projects for large digital businesses. Antonio holds an MSc in Computer Science from Universidad Pontificia Comillas and completed the Advanced Management Program at MIT Sloan. His father inspired his passion for computers and coding.
Antonio has been developing Django projects since 2006 for clients across several industries. In 2009 Antonio founded Zenx IT, a development company specialized in building digital products. He has been working as a CTO and technology consultant for multiple technology-based startups and he has managed development teams building projects for large digital businesses. Antonio holds an MSc in Computer Science from Universidad Pontificia Comillas and completed the Advanced Management Program at MIT Sloan. His father inspired his passion for computers and coding.
Content
Table of Contents
Building a Blog Application
Enhancing Your Blog and Adding Social Features
Extending Your Blog Application
Building a Social Website
Implementing Social Authentication
Sharing Content on Your Website
Tracking User Actions
Building an Online Shop
Managing Payments and Orders
Extending Your Shop
Adding Internationalization to Your Shop
Building an E-Learning Platform
Creating a Content Management System
Rendering and Caching Content
Building an API
Building a Chat Server
Going Live
Building a Blog Application
Enhancing Your Blog and Adding Social Features
Extending Your Blog Application
Building a Social Website
Implementing Social Authentication
Sharing Content on Your Website
Tracking User Actions
Building an Online Shop
Managing Payments and Orders
Extending Your Shop
Adding Internationalization to Your Shop
Building an E-Learning Platform
Creating a Content Management System
Rendering and Caching Content
Building an API
Building a Chat Server
Going Live