Python Web Development with Django (Paperback)

Jeff Forcier, Paul Bissex, Wesley J Chun

  • 出版商: Addison Wesley
  • 出版日期: 2008-09-01
  • 售價: $1,680
  • 貴賓價: 9.5$1,596
  • 語言: 英文
  • 頁數: 408
  • 裝訂: Paperback
  • ISBN: 0132356139
  • ISBN-13: 9780132356138
  • 相關分類: DjangoPython程式語言
  • 立即出貨 (庫存 < 3)

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

商品描述

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章:Django的實用Python
- 第2章:Django入門:建立一個網誌
- 第3章:開始

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

- 第三部分:通過實例學習Django應用程序
- 第7章:相冊
- 第8章:內容管理系統
- 第9章:即時博客
- 第10章:過去的代碼

- 第四部分:高級Django技術和功能
- 第11章:高級Django編程
- 第12章:高級Django部署

- 第五部分:附錄
- 附錄A:命令行基礎
- 附錄B:安裝和運行Django
- 附錄C:實用Django開發工具
- 附錄D:尋找、評估和使用Django應用程序
- 附錄E:Google App Engine上的Django
- 附錄F:參與Django項目

- 索引
- 版權頁