The Definitive Guide to Django, 2nd Edition

Adrian Holovaty

出版社

Apress

出版时间

2009-06-30

ISBN

9781430219361

评分

★★★★★

标签

web编程

书籍介绍
这本书最打动人的地方,是它不满足于告诉你Django“怎么用”,而是反复追问“为什么这么设计”。从中间件的请求/响应双向执行顺序,到为何推荐PostgreSQL作为数据库后端,作者把框架背后的权衡摊开讲,让读者知其然更知其所以然。它适合那些不想只会调用API、而想真正理解MTC架构、能从容排查错误、并重视Web安全的开发者。不过也有读者指出,本书未以完整项目贯穿讲解,知识点偏零散,且版本偏老。若你追求系统、透彻地吃透Django的设计哲学,它仍是值得反复翻看的标杆;若你更想要一个能直接套用的项目模板,或许还需搭配其他资料。
作者简介
Adrian Holovaty, a web developer and journalist, is one of the creators and core developers of Django. He works at WashingtonPost.com, where he builds database web applications and does "journalism as computer programming." Previously, he was lead developer for World Online in Lawrence, Kansas, where Django was created. When not working on Django improvements, Adrian hacks on side projects for the public good, such as ChicagoCrime.org, which won the 2005 Batten Award for Innovations in Journalism. He lives in Chicago and maintains a weblog at www.Holovaty.com. Jacob Kaplan-Moss is one of the lead developers of Django. At his day job, he's the lead developer for the Lawrence Journal-World, a locally owned newspaper in Lawrence, Kansas, where Django was developed. At the Journal-World, Jacob hacks on a number of sites including lawrence.com, LJWorld.com, and KUsports.com, and he is continually embarrassed by the multitude of media awards those sites win. In his spare time—what little of it there is—he fancies himself a chef.
AI导读
核心看点
  • Django创始人亲笔,权威且详尽的框架指南
  • 从安装配置到高级特性,系统讲解Web开发
  • 深入剖析MTC架构、中间件及安全机制原理
读者共识
  • 讲解清晰易懂,是Django入门的经典首选
  • 不仅知其然更知其所以然,理论深度足够
  • 版本较老,需警惕API变更,建议谨慎参考
精彩摘录
  • "一个值得注意的例外是Django的可选GIS支持,它为PostgreSQL提供了强大的功能。)如果你不准备使用一些老旧系统,而且可以自由的选择数据库后端,我们推荐你使用PostgreSQL,它在成本、特性、速度和稳定性方面都做的比较平衡。"
  • "尽可能的保持在单一的编程环境/思想状态下可以帮助你提高生产率。"
  • "Are you the type of programmer who likes to debug with the help of carefully placed print statements? You can use the Django error page to do so—just without the print statements. At any point in your view, temporarily insert an assert False to trigger the error page. Then you can view the local var"
  • "On the request and view phases, Django applies middleware in the order given in MIDDLEWARE_CLASSES, and on the response and exception phases, Django applies middleware in reverse order. That is, Django treats MIDDLEWARE_CLASSES as a sort of “wrapper” around the view function: on the request it walks"
  • "The Internet can be a scary place. These days, high-profile security gaffes seem to crop up on a daily basis. We’ve seen viruses spread with amazing speed; swarms of compromised computers wielded as weapons; a never-ending arms race against spammers; and many, many reports of identity theft from hac"
目录
Introduction to Django
Getting Started
Views and URLconfs
Templates
Models

显示全部
用户评论
这书为 Django Book 2.0 http://www.djangobook.com/en/2.0/ 的纸质版。
读的是在线翻译的中文版,把我带入Django不错的书,虽然没有以完整的project来讲解,知识点很清晰。
书不错,但是感觉django本身偶合性太高了,铁板一块,感觉flask才是python web framework的未来。
The Django Book的印刷版。细节说的很清楚,非常不错。或许正如其所宣称的那样:The goal of this book is to make you a Django expert.
入门必备
看的Django book中文版。很好,讲的很棒,感恩作者。我觉得学计算机也应该多看书啊,好书比博客的只言片语好太多了。mtv结构,跟经典的mvc结构没有质的区别,看这本书是比较好理解的。有一些基本的python基础,加上对mvc的基础理解,看这本书理解Django并不难
Django开发者必备喔 @2011-04-24 12:31:10
真是循序渐进,超棒啊~
据说就是the Django book,一口气读完前五章,很不错。通俗易懂。
下载
收藏