Django in Action
eBook - ePub

Django in Action

  1. 400 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Django in Action

About this book

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! Foreword by Michael Kennedy. 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. Table of Contents PART 1
1 Django unfolds
2 Your first Django site
3 Templates
4 Django ORM
5 Django Admin
PART 2
6 User management
7 Forms, user data, static files, and uploads
8 Testing your project
9 Management commands
10 Migration
PART 3
11 APIs
12 Making your pages more dynamic with HTMX
13 Django power tools
14 Where to go next
Appendix A
Appendix B
Appendix C
Appendix D
Appendix E

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Django in Action by Christopher Trudeau in PDF and/or ePUB format, as well as other popular books in Ciencia de la computación & Programación en HTML. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. copyright
  2. contents
  3. Django in Action
  4. dedication
  5. foreword
  6. preface
  7. acknowledgments
  8. about this book
  9. about the author
  10. about the cover illustration
  11. Part 1 Django essentials
  12. 1 Django unfolds
  13. 2 Your first Django site
  14. 3 Templates
  15. 4 Django ORM
  16. 5 Django Admin
  17. Part 2 Django building blocks
  18. 6 User management
  19. 7 Forms, user data, static files, and uploads
  20. 8 Testing your project
  21. 9 Management commands
  22. 10 Migration
  23. Part 3 Django projects
  24. 11 APIs
  25. 12 Making your pages more dynamic with HTMX
  26. 13 Django power tools
  27. 14 Where to go next
  28. appendix A Installation and setup
  29. appendix B Django in a production environment
  30. appendix C Django template tag and filter reference
  31. appendix D Django ORM field reference
  32. appendix E Sample exercise solutions