Web Development with Django - Second Edition: A definitive guide to building modern Python web applications using Django 4

Shaw, Ben, Badhwar, Saurabh, Guest, Chris

  • 出版商: Packt Publishing
  • 出版日期: 2023-05-26
  • 售價: $2,100
  • 貴賓價: 9.5$1,995
  • 語言: 英文
  • 頁數: 764
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1803230606
  • ISBN-13: 9781803230603
  • 相關分類: DjangoPython程式語言
  • 立即出貨 (庫存=1)

買這商品的人也買了...

相關主題

商品描述

Work through realistic case studies to create your own websites easily, securely, and quickly

Key Features

- Understand Django functionality and the Model-View-Template (MVT) paradigm
- Create and iteratively build a book review website, adding features as you build your knowledge
- Explore advanced concepts such as REST API implementation and third-party module integration

Book Description

Do you want to develop reliable and secure applications that stand out from the crowd without spending hours on boilerplate code? You've made the right choice trusting the Django framework, and this book will tell you why. Often referred to as a “batteries included” web development framework, Django comes with all the core features needed to build a standalone application. Web Development with Django will take you through all the essential concepts and help you explore its power to build real-world applications using Python.

Throughout the book, you'll get the grips with the major features of Django by building a website called Bookr – a repository for book reviews. This end-to-end case study is split into a series of bitesize projects presented as exercises and activities, allowing you to challenge yourself in an enjoyable and attainable way. As you advance, you'll acquire various practical skills, including how to serve static files to add CSS, JavaScript, and images to your application, how to implement forms to accept user input, and how to manage sessions to ensure a reliable user experience. You'll cover everyday tasks that are part of the development cycle of a real-world web application.

By the end of this Django book, you'll have the skills and confidence to creatively develop and deploy your own projects.

What you will learn

- Create a new application and add models to describe your data
- Use views and templates to control behavior and appearance
- Implement access control through authentication and permissions
- Develop practical web forms to add features such as file uploads
- Build a RESTful API and JavaScript code that communicates with it
- Connect to a database such as PostgreSQL

Who this book is for

This book is for programmers looking to enhance their web development skills using the Django framework. To fully understand the concepts explained in this book, basic knowledge of Python programming as well as familiarity with JavaScript, HTML, and CSS is assumed.

商品描述(中文翻譯)

透過實際案例學習,輕鬆、安全且快速地建立自己的網站。

主要特點:
- 瞭解 Django 的功能和 Model-View-Template (MVT) 架構
- 透過建立書評網站,逐步擴充功能以增加知識
- 探索進階概念,如 REST API 實作和第三方模組整合

書籍描述:
您想要開發可靠且安全的應用程式,脫穎而出,而不需花費大量時間在樣板代碼上嗎?您選擇信任 Django 框架是正確的選擇,而本書將告訴您為什麼。Django 框架通常被稱為「一應俱全」的網頁開發框架,具備建立獨立應用程式所需的所有核心功能。《Web Development with Django》將帶您深入了解所有基本概念,並幫助您探索使用 Python 建立真實應用程式的強大功能。

在整本書中,您將透過建立一個名為 Bookr 的網站,全面掌握 Django 的主要功能。這個端到端的案例研究被分成一系列的小型專案,以練習和活動的形式呈現,讓您能夠以有趣且可行的方式挑戰自己。隨著進展,您將獲得各種實用技能,包括如何提供靜態檔案以添加 CSS、JavaScript 和圖片到應用程式中,如何實作表單以接受使用者輸入,以及如何管理會話以確保可靠的使用者體驗。您將涵蓋真實網頁應用程式開發週期中的日常任務。

通過閱讀本書,您將具備創造性地開發和部署自己專案的技能和信心。

學到的內容:
- 建立新應用程式並添加模型以描述資料
- 使用視圖和模板控制行為和外觀
- 透過身份驗證和權限實作存取控制
- 開發實用的網頁表單,以添加功能,如檔案上傳
- 建立 RESTful API 和與之通訊的 JavaScript 程式碼
- 連接到 PostgreSQL 等資料庫

適合閱讀對象:
本書適合希望使用 Django 框架提升網頁開發技能的程式設計師。為了完全理解本書中解釋的概念,需要具備 Python 程式設計的基本知識,以及熟悉 JavaScript、HTML 和 CSS。

目錄大綱

  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 Customization
  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

目錄大綱(中文翻譯)


  1. Django 簡介

  2. 模型和遷移

  3. URL 對應、視圖和模板

  4. Django 管理介面簡介

  5. 提供靜態檔案

  6. 表單

  7. 進階表單驗證和模型表單

  8. 媒體提供和檔案上傳

  9. 會話和身份驗證

  10. 進階 Django 管理介面和自訂

  11. 進階模板和基於類別的視圖

  12. 建立 REST API

  13. 產生 CSV、PDF 和其他二進制檔案

  14. 測試 Django 應用程式

  15. Django 第三方函式庫

  16. 使用前端 JavaScript 函式庫與 Django