Part 3 Django projects
Parts 1 and 2 of the book gave you the basis for writing complex, multiuser websites. The chapters in part 3 explore some third-party libraries you can use to add even more capabilities to your project. The chapters in this part aren’t interdependent, so feel free to read them in whatever order you please.
Chapter 11 is all about APIs. It will show you how to use the Django Ninja library to build the backend of a single-page application and add features to your site, so users can programmatically access your data.
Unmodified, Django’s view mechanism favors multi-page applications, but newer tools, like HTMX, can provide dynamic interactions without the need to convert to full single-page application (SPA) frameworks, like React or Angular. Chapter 12 shows you how to use HTMX and partial-page snippets to increase the interactivity of your web pages.
Chapter 13 provides an overview of several popular third-party libraries. It discusses power tools, such as the Django Debug Toolbar, using Django Distill to create static sites, beautifying the Django Admin using Grappelli, and much more.
Finally, Chapter 14 points you to what’s next. It briefly covers parts of the Django framework that didn’t fit in the book, several third-party libraries that will help you write less code, as well as some helpful links to resources where you can learn more about Django and its ecosystem.