Python Web Development with Django (Paperback)
暫譯: 使用 Django 的 Python 網頁開發 (平裝本)

Jeff Forcier, Paul Bissex, Wesley J Chun

  • 出版商: Addison Wesley
  • 出版日期: 2008-09-01
  • 定價: $1,650
  • 售價: 6.0$990
  • 語言: 英文
  • 頁數: 408
  • 裝訂: Paperback
  • ISBN: 0132356139
  • ISBN-13: 9780132356138
  • 相關分類: DjangoPython程式語言
  • 立即出貨 (庫存=1)

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

相關主題

商品描述

Using the simple, robust, Python-based Django framework, you can build powerful Web solutions with remarkably few lines of code. In Python Web Development with Django®, three experienced Django and Python developers cover all the techniques, tools, and concepts you need to make the most of Django 1.0, including all the major features of the new release.

 

The authors teach Django through in-depth explanations, plus provide extensive sample code supported with images and line-by-line explanations. You’ll discover how Django leverages Python’s development speed and flexibility to help you solve a wide spectrum of Web development problems and learn Django best practices covered nowhere else. You’ll build your first Django application in just minutes and deepen your real-world skills through start-to-finish application projects including

  • Simple Web log (blog)
  • Online photo gallery
  • Simple content management system
  • Ajax-powered live blogger
  • Online source code sharing/syntax highlighting tool
  • How to run your Django applications on the Google App Engine

 

This complete guide starts by introducing Python, Django, and Web development concepts, then dives into the Django framework, providing a deep understanding of its major components (models, views, templates), and how they come together to form complete Web applications. After a discussion of four independent working Django applications, coverage turns to advanced topics, such as caching, extending the template system, syndication, admin customization, and testing. Valuable reference appendices cover using the command-line, installing and configuring Django, development tools, exploring existing Django applications, the Google App Engine, and how to get more involved with the Django community.

 

 

Introduction 1

 

Part I: Getting Started

Chapter 1: Practical Python for Django 7

Chapter 2: Django for the Impatient: Building a Blog 57

Chapter 3: Starting Out 77

 

Part II: Django in Depth

Chapter 4: Defining and Using Models 89

Chapter 5: URLs, HTTP Mechanisms, and Views 117

Chapter 6: Templates and Form Processing 135

 

Part III: Django Applications by Example

Chapter 7: Photo Gallery 159

Chapter 8: Content Management System 181

Chapter 9: Liveblog 205

Chapter 10: Pastebin 221

 

Part IV: Advanced Django Techniques and Features

Chapter 11: Advanced Django Programming 235

Chapter 12: Advanced Django Deployment 261

 

Part V: Appendices

Appendix A: Command Line Basics 285

Appendix B: Installing and Running Django 295

Appendix C: Tools for Practical Django Development 313

Appendix D: Finding, Evaluating, and Using Django Applications 321

Appendix E: Django on the Google App Engine 325

Appendix F: Getting Involved in the Django Project 337

 

Index 339

Colophon 375

商品描述(中文翻譯)

使用簡單、穩健的基於 Python 的 Django 框架,您可以用極少的程式碼行數構建強大的網頁解決方案。在《Python Web Development with Django®》一書中,三位經驗豐富的 Django 和 Python 開發者涵蓋了您需要充分利用 Django 1.0 的所有技術、工具和概念,包括新版本的所有主要功能。

作者通過深入的解釋來教授 Django,並提供大量的範例程式碼,配合圖片和逐行解釋。您將發現 Django 如何利用 Python 的開發速度和靈活性,幫助您解決各種網頁開發問題,並學習到其他地方無法獲得的 Django 最佳實踐。您將在幾分鐘內建立您的第一個 Django 應用程式,並通過從頭到尾的應用專案深化您的實務技能,包括:

- 簡單的網誌 (blog)
- 在線相片畫廊
- 簡單的內容管理系統
- 基於 Ajax 的即時部落客
- 在線原始碼分享/語法高亮工具
- 如何在 Google App Engine 上運行您的 Django 應用程式

這本完整的指南首先介紹 Python、Django 和網頁開發概念,然後深入 Django 框架,提供對其主要組件(模型、視圖、模板)的深入理解,以及它們如何結合形成完整的網頁應用程式。在討論四個獨立運作的 Django 應用程式後,內容轉向進階主題,如快取、擴展模板系統、聚合、管理自定義和測試。寶貴的參考附錄涵蓋了使用命令列、安裝和配置 Django、開發工具、探索現有的 Django 應用程式、Google App Engine,以及如何更深入地參與 Django 社群。

引言 1

**第一部分:入門**
第 1 章:實用的 Python 用於 Django 7
第 2 章:不耐煩的 Django:建立一個部落格 57
第 3 章:開始 77

**第二部分:深入 Django**
第 4 章:定義和使用模型 89
第 5 章:URLs、HTTP 機制和視圖 117
第 6 章:模板和表單處理 135

**第三部分:通過範例學習 Django 應用程式**
第 7 章:相片畫廊 159
第 8 章:內容管理系統 181
第 9 章:即時部落格 205
第 10 章:Pastebin 221

**第四部分:進階 Django 技術和功能**
第 11 章:進階 Django 程式設計 235
第 12 章:進階 Django 部署 261

**第五部分:附錄**
附錄 A:命令列基礎 285
附錄 B:安裝和運行 Django 295
附錄 C:實用的 Django 開發工具 313
附錄 D:尋找、評估和使用 Django 應用程式 321
附錄 E:在 Google App Engine 上的 Django 325
附錄 F:參與 Django 專案 337

索引 339
版權頁 375