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
- Part 1. Django essentials
- Chapter 1. Django unfolds
- Chapter 1. What can you do with Django?
- Chapter 1. Summary
- Chapter 2. Your first Django site
- Chapter 2. Creating a Django project
- Chapter 2. Projects vs. apps
- Chapter 2. Your first Django app
- Chapter 2. Your first Django view
- Chapter 2. Registering a route
- Chapter 2. Visiting your view
- Chapter 2. Exercises
- Chapter 2. Summary
- Chapter 3. Templates
- Chapter 3. Context objects and the parts of a Template
- Chapter 3. Django shell
- Chapter 3. Rendering a Template
- Chapter 3. Common tags and filters
- Chapter 3. Using render() in a view
- Chapter 3. Escaping special characters
- Chapter 3. Composing templates out of blocks
- Chapter 3. Exercises
- Chapter 3. Summary
- Chapter 4. Django ORM
- Chapter 4. ORM Models
- Chapter 4. SQLite and dbshell
- Chapter 4. Model queries
- Chapter 4. Modifying your data
- Chapter 4. Querying models in views
- Chapter 4. Model relations
- Chapter 4. Model fields
- Chapter 4. Fixtures
- Chapter 4. Danger zone, or know thy SQL
- Chapter 4. Exercises
- Chapter 4. Summary
- Chapter 5. Django Admin
- Chapter 5. Customizing a listing page
- Chapter 5. Cross-linking between related objects
- Chapter 5. Model Meta properties
- Chapter 5. Exercises
- Chapter 5. Summary
- Part 2. Django building blocks
- Chapter 6. User management
- Chapter 6. Storing user data
- Chapter 6. Restricting access to views
- Chapter 6. Authorization in views
- Chapter 6. Using signals to automatically create a user profile
- Chapter 6. Password management
- Chapter 6. Exercises
- Chapter 6. Summary
- Chapter 7. Forms, user data, static files, and uploads
- Chapter 7. Django ModelForm
- Chapter 7. Serving static files
- Chapter 7. Uploads
- Chapter 7. Exercises
- Chapter 7. Summary
- Chapter 8. Testing your project
- Chapter 8. Your first Django test
- Chapter 8. Testing with the database
- Chapter 8. Expecting errors
- Chapter 8. Authenticating and posting data
- Chapter 8. Testing with file uploads
- Chapter 8. More testing techniques
- Chapter 8. Measuring tests and code quality
- Chapter 8. Exercises
- Chapter 8. Summary
- Chapter 9. Management commands
- Chapter 9. Writing your own management command
- Chapter 9. Handling arguments
- Chapter 9. Testing, and using STDOUT and STDERR
- Chapter 9. Exercises
- Chapter 9. Summary
- Chapter 10. Migration
- Chapter 10. Migration with existing data
- Chapter 10. Squashing a migration
- Chapter 10. More migration choices
- Chapter 10. Exercises
- Chapter 10. Summary
- Part 3. Django projects
- Chapter 11. APIs
- Chapter 11. Building an API with Django Ninja
- Chapter 11. Other API libraries
- Chapter 11. Exercises
- Chapter 11. Summary
- Chapter 12. Making your pages more dynamic with HTMX
- Chapter 12. HTMX attributes
- Chapter 12. Lazy loading
- Chapter 12. Search-as-you-type with infinite scroll
- Chapter 12. Click to edit
- Chapter 12. Exercises
- Chapter 12. Summary
- Chapter 13. Django power tools
- Chapter 13. Tool libraries
- Chapter 13. Look and feel
- Chapter 13. Feature flags
- Chapter 13. Static sites
- Chapter 13. Summary
- Chapter 14. Where to go next
- Chapter 14. Configuration
- Chapter 14. Dealing with data
- Chapter 14. Web tools
- Chapter 14. Asynchronous actions
- Chapter 14. A wide world
- appendix A. Installation and setup
- appendix A. Virtual environments
- appendix A. Editing tools
- appendix A. Installing third-party libraries
- appendix B. Django in a production environment
- appendix B. Server hosting vs. platform as a service
- appendix B. Synchronous vs. asynchronous
- appendix B. Readying Django for production
- appendix B. Static file management
- appendix B. Other databases
- appendix B. Caching
- appendix B. Putting it all together
- appendix D. Django ORM field reference
- appendix D. Field types
- appendix D. Relationship field types
- appendix E. Sample exercise solutions
- appendix E. Chapter 3
- appendix E. Chapter 4
- appendix E. Chapter 5
- appendix E. Chapter 6
- appendix E. Chapter 7
- appendix E. Chapter 8
- appendix E. Chapter 9
- appendix E. Chapter 10
- appendix E. Chapter 11
- appendix E. Chapter 12
Product information
- Title: Django in Action, Video Edition
- Author(s):
- Release date: July 2024
- Publisher(s): Manning Publications
- ISBN: None
You might also like
book
Django in Action
Build professional quality web applications using Python and the Django 5.0 web framework. The Django web …
book
Django in Production
Enhance your Django skills and elevate your employability by mastering the tools and practices employed by …
book
Django RESTful Web Services
Design, build and test RESTful web services with the Django framework and Python About This Book …
video
Advanced Web Development in Python with Django
More than 8 Hours of Video Instruction Overview Advanced Web Development in Python with Django LiveLessons …