Create modern, secure websites easily and quickly with Django 6 through realistic case studies updated for the latest async features and modern Python support Key Features Get to grips with Django 6 functionality, the MVT paradigm, and its new async-powered features Build and extend a book-review site using updated templates, forms, async features, and ORM tools Explore REST APIs, async views, third-party integrations, testing, and modern deployment options Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionTired of spending hours on boilerplate code when you should be building features? Django 6 transforms your workflow with major improvements to the Python web ecosystem—from expanded async support to improved form rendering, stronger security, and modern template and ORM capabilities. This book shows you how to take full advantage of these upgrades to build reliable, secure, and high-performance web applications in a structured, hands-on way. You’ll discover Django 6’s power by building an end-to-end case study of developing a website called Bookr, a repository for book reviews that mirrors real development workflows. Through guided practical exercises, you'll learn how to serve static files, implement forms using Django 6’s improved rendering system, handle async views and ORM operations, and manage sessions to create a seamless user experience. You’ll also tackle essential tasks such as authentication, security best practices, and integrating modern front-end tools. By the end of this Django book, you’ll be ready to build and deploy your own scalable, modern Python web applications using Django 6.What you will learn Start a new Django 6 project and define models using the improved ORM Work with async and class-based views using templates to control application behavior Implement authentication, permissions, and modern session handling techniques Create practical forms using Django 6's updated rendering API Build RESTful APIs and the JavaScript features that integrate with them Connect to PostgreSQL and run async-ready queries where supported Who this book is forThis book is for programmers who want to enhance their web development skills with Django 6. You’ll get the most out of it if you already know Python programming and are familiar with JavaScript, HTML, and CSS. This book is especially useful for anyone looking to understand Django’s new async capabilities, modern security features, and production-ready web development patterns.
Les mer
Table of Contents
  1. An Introduction to Django
  2. Models and Migrations
  3. URL Mapping, Views, and Templates
  4. An Introduction to Django Admin
  5. Serving Static Files
  6. Forms
  7. Advanced Form Validation and Model Forms
  8. Media Serving and File Uploads
  9. Sessions and Authentication
  10. Advanced Django Admin and Customizations
  11. Advanced Templating and Class-Based Views
  12. Building a REST API
  13. Generating CSV, PDF, and Other Binary Files
  14. Testing Your Django Applications
  15. Django Third-Party Libraries
  16. Using a Frontend JavaScript Library with Django
Les mer

Produktdetaljer

ISBN
9781836202073
Publisert
2026-03-20
Utgave
3. utgave
Utgiver
Packt Publishing Limited
Høyde
235 mm
Bredde
191 mm
Aldersnivå
01, UP, P, 05, 06
Språk
Product language
Engelsk
Format
Product format
Heftet

Biografisk notat

Chris Guest is based in Melbourne and started programming in Python 24 years ago, when it was an obscure academic language. He has since used his Python knowledge in the publishing, hospitality, medical, academic and financial sectors. Throughout his career, he has worked with many Python web development frameworks, including Zope, TurboGears, web2py, and Flask, although he still prefers Django. Ben Shaw is a software engineer based in Auckland, New Zealand. He has worked as a developer for over 14 years and has been building websites with Django since 2007. In that time, his experience has helped many different types of companies, ranging in size from start-ups to large enterprises. He is also interested in machine learning, data science, automating deployments, and DevOps. When not programming, Ben enjoys outdoor sports and spending time with his partner and son. Saurabh Badhwar is an infrastructure engineer who works on building tools and frameworks that enhance developer productivity. A major part of his work involves using Python to develop services that scale to thousands of concurrent users. He is currently employed at LinkedIn and works on infrastructure performance tools and services. Bharath Chandra K S lives in Sydney, Australia, and has over 14 years of software industry experience. He is very passionate about software development on the Python stack, including frameworks such as Flask and Django. He has experience working with both monolithic and microservice architectures and has built various public-facing applications and data processing backend systems. When not cooking up software applications, he likes to cook some nice food.