Django in Action, Video Edition

Video description

In Video Editions the narrator reads the book while the content, figures, code listings, diagrams, and text appear on the screen. Like an audiobook that you can also watch as a video.

Build professional quality web applications using Python and the Django 5.0 web framework.

The Django web application framework powers huge sites like Netflix, Dropbox, YouTube, and Spotify. Learn how it can power your web apps too! In this hands-on book, you’ll begin building a fully functional web application with Django starting with chapter 1.

In Django in Action you’ll:

  • Build a multi-user web site in Django
  • Read, write, and manage data
  • Create reusable and composable HTML templates
  • Manage user data including form submissions and file uploads
  • Set up authentication, authorization, and per-person-per-page permissions
  • Manage the backend using the Django Admin tool
  • Discover Django libraries and plugins

Django in Action is the perfect way to get started for new Django developers creating their first Python-based web apps. It’s written by Christopher Trudeau, co-host of The Real Python Podcast and creator of dozens of popular courses at Real Python and TalkPython. The book starts with Django’s basics and works through all of the core concepts of the framework until you’re comfortable and confident creating your own web apps. You’ll especially enjoy the author’s lighthearted style that makes learning fun!

About the Technology
Django makes life easier for Python web developers. This “batteries included” framework comes packed with everything you need—a template engine that crafts HTML-like code, efficient user management features, automated testing, robust API support, and much more. If you know the basics of Python, Django will help you build professional-quality web applications. This book will show you how.

About the Book
In Django in Action you’ll dive deep into Django as you build a complete multi-user website. Hands-on from the start, each chapter introduces new features to your site, including password management and authentication, web forms and file uploads, and dynamic, JavaScript-like interactivity. You’ll see how all the components of a Django project come together while learning practical tips on leveraging third-party libraries and deploying your code to production.

What's Inside
  • Reusable and composable HTML templates
  • Reading, writing, and managing data
  • Backend management with Django Admin
  • Exploring Django libraries and plugins


About the Reader
For readers with basic Python programming and some HTML knowledge.

About the Author
Christopher Trudeau is the co-host of the Real Python Podcast, a prolific author of Django and Python articles and video courses, and an experienced Python developer.

Quotes
A great companion on your Django journey. It lays out Django in an easy-to-follow format. I wish I had this book when I was learning Django.
- Mike Driscoll, Teach Me Python

Feels like Christopher is taking me through the material in person. It was a joy to read.
- Stephen Gruppetta, The Python Coding Place

A brisk-paced roadmap to getting the most out of web applications created with Django. I would want this book on my desk.
- Doug Farrell, Author of The Well-Grounded Python Developer

Approachable, with the clear goal to get you building projects with Django. The chapter on HTMX and suggested libraries and resources is a huge plus.
- Christopher Bailey, Real Python

Table of contents

  1. Part 1. Django essentials
  2. Chapter 1. Django unfolds
  3. Chapter 1. What can you do with Django?
  4. Chapter 1. Summary
  5. Chapter 2. Your first Django site
  6. Chapter 2. Creating a Django project
  7. Chapter 2. Projects vs. apps
  8. Chapter 2. Your first Django app
  9. Chapter 2. Your first Django view
  10. Chapter 2. Registering a route
  11. Chapter 2. Visiting your view
  12. Chapter 2. Exercises
  13. Chapter 2. Summary
  14. Chapter 3. Templates
  15. Chapter 3. Context objects and the parts of a Template
  16. Chapter 3. Django shell
  17. Chapter 3. Rendering a Template
  18. Chapter 3. Common tags and filters
  19. Chapter 3. Using render() in a view
  20. Chapter 3. Escaping special characters
  21. Chapter 3. Composing templates out of blocks
  22. Chapter 3. Exercises
  23. Chapter 3. Summary
  24. Chapter 4. Django ORM
  25. Chapter 4. ORM Models
  26. Chapter 4. SQLite and dbshell
  27. Chapter 4. Model queries
  28. Chapter 4. Modifying your data
  29. Chapter 4. Querying models in views
  30. Chapter 4. Model relations
  31. Chapter 4. Model fields
  32. Chapter 4. Fixtures
  33. Chapter 4. Danger zone, or know thy SQL
  34. Chapter 4. Exercises
  35. Chapter 4. Summary
  36. Chapter 5. Django Admin
  37. Chapter 5. Customizing a listing page
  38. Chapter 5. Cross-linking between related objects
  39. Chapter 5. Model Meta properties
  40. Chapter 5. Exercises
  41. Chapter 5. Summary
  42. Part 2. Django building blocks
  43. Chapter 6. User management
  44. Chapter 6. Storing user data
  45. Chapter 6. Restricting access to views
  46. Chapter 6. Authorization in views
  47. Chapter 6. Using signals to automatically create a user profile
  48. Chapter 6. Password management
  49. Chapter 6. Exercises
  50. Chapter 6. Summary
  51. Chapter 7. Forms, user data, static files, and uploads
  52. Chapter 7. Django ModelForm
  53. Chapter 7. Serving static files
  54. Chapter 7. Uploads
  55. Chapter 7. Exercises
  56. Chapter 7. Summary
  57. Chapter 8. Testing your project
  58. Chapter 8. Your first Django test
  59. Chapter 8. Testing with the database
  60. Chapter 8. Expecting errors
  61. Chapter 8. Authenticating and posting data
  62. Chapter 8. Testing with file uploads
  63. Chapter 8. More testing techniques
  64. Chapter 8. Measuring tests and code quality
  65. Chapter 8. Exercises
  66. Chapter 8. Summary
  67. Chapter 9. Management commands
  68. Chapter 9. Writing your own management command
  69. Chapter 9. Handling arguments
  70. Chapter 9. Testing, and using STDOUT and STDERR
  71. Chapter 9. Exercises
  72. Chapter 9. Summary
  73. Chapter 10. Migration
  74. Chapter 10. Migration with existing data
  75. Chapter 10. Squashing a migration
  76. Chapter 10. More migration choices
  77. Chapter 10. Exercises
  78. Chapter 10. Summary
  79. Part 3. Django projects
  80. Chapter 11. APIs
  81. Chapter 11. Building an API with Django Ninja
  82. Chapter 11. Other API libraries
  83. Chapter 11. Exercises
  84. Chapter 11. Summary
  85. Chapter 12. Making your pages more dynamic with HTMX
  86. Chapter 12. HTMX attributes
  87. Chapter 12. Lazy loading
  88. Chapter 12. Search-as-you-type with infinite scroll
  89. Chapter 12. Click to edit
  90. Chapter 12. Exercises
  91. Chapter 12. Summary
  92. Chapter 13. Django power tools
  93. Chapter 13. Tool libraries
  94. Chapter 13. Look and feel
  95. Chapter 13. Feature flags
  96. Chapter 13. Static sites
  97. Chapter 13. Summary
  98. Chapter 14. Where to go next
  99. Chapter 14. Configuration
  100. Chapter 14. Dealing with data
  101. Chapter 14. Web tools
  102. Chapter 14. Asynchronous actions
  103. Chapter 14. A wide world
  104. appendix A. Installation and setup
  105. appendix A. Virtual environments
  106. appendix A. Editing tools
  107. appendix A. Installing third-party libraries
  108. appendix B. Django in a production environment
  109. appendix B. Server hosting vs. platform as a service
  110. appendix B. Synchronous vs. asynchronous
  111. appendix B. Readying Django for production
  112. appendix B. Static file management
  113. appendix B. Other databases
  114. appendix B. Caching
  115. appendix B. Putting it all together
  116. appendix D. Django ORM field reference
  117. appendix D. Field types
  118. appendix D. Relationship field types
  119. appendix E. Sample exercise solutions
  120. appendix E. Chapter 3
  121. appendix E. Chapter 4
  122. appendix E. Chapter 5
  123. appendix E. Chapter 6
  124. appendix E. Chapter 7
  125. appendix E. Chapter 8
  126. appendix E. Chapter 9
  127. appendix E. Chapter 10
  128. appendix E. Chapter 11
  129. appendix E. Chapter 12

Product information

  • Title: Django in Action, Video Edition
  • Author(s): Christopher Trudeau
  • Release date: July 2024
  • Publisher(s): Manning Publications
  • ISBN: None