PacktPublishing / Django-5-By-Example

Django 5 By Example (5th Edition) published by Packt
https://djangobyexample.com/
MIT License
180 stars 81 forks source link
ajax api asgi celery cms javascript-programming nginx postgres redis rest-api-design restful-web-apis uwsgi

Django 5 by Example

GitHub stars

This is the code repository for Django 5 by Example, written by Antonio Melé and published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

Technical Reviewer: Mark Walker
Foreword: Paolo Melchiorre

Instructions

The code is organised into directories with the chapter number. For example, Chapter02 contains the source code for chapter 2. Each chapter folder has a requirements.txt file that includes all packages required to run the code of that chapter. These can be installed with the command pip install -r requirements.txt.

Run the Django development server with the command:

python manage.py runserver

Docker Compose is explained in Chapter 17. However all chapters include a Docker Compose configuration and a management script (contribution by @marksweb).

Commands to build and run using Docker Compose:

./do.sh build
./do.sh run

List of commands:

About the Book

Django 5 by Example (5th edition) will guide you through the entire process of developing professional web applications with Django. The book not only covers the most relevant aspects of the framework, but it will also teach you how to integrate other popular technologies into your Django projects.

The book will walk you through the creation of four real-world applications, solving common problems, and implementing best practices, using a step-by-step approach that is easy to follow.

After reading this book, you will have a good understanding of how Django works and how to build practical, advanced web applications.

Requirements

This book requires Python 3.12+ and Django 5.

Django Projects

The book covers a wide range of web app development topics divided into four different Django projects:

Community & Support

Join the book Discord Community to participate in the ongoing discussions or/and initiate a new one. You will find other developers reading the book alongside and helping each other with questions.

Source Code for Previous Editions

Editions in Other Languages

While the 5th edition of the book is translated to other languages, you can find translations for the previous editions:

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost. Simply click on the link to claim your free PDF: https://packt.link/free-ebook/9781805125457

Graphic Bundle

We also provide a PDF file that has color images of the screenshots/diagrams used in this book at GraphicBundle Coding

Errata