The Definitive Guide to Django

Adrian Holovaty, Jacob Kaplan-Moss

出版社

Apress

出版时间

2007-12-06

ISBN

9781590597255

评分

★★★★★
书籍介绍
这本书的定位,更像一本「工作手册」而非「入门教程」:封面两位作者都是 Django 核心开发成员,内容覆盖面广、讲解到点,被不少读者当成一星期速成的主力读物。但它也正因为「面面俱到」而饱受争议——有读者直言它不够深入、例子偏少,甚至劝退「看官方文档才是王道」。正因如此,它的真正价值或许不在「讲得最全」,而在于帮你快速建立 Django 的整体工作图景:从安装配置到中间件顺序、从数据库后端选型(作者明确推荐 PostgreSQL)到安全这一「必须认真对待」的核心议题。如果你想要的是系统性的实操框架,它会给你;如果你追求深度钻研,官方文档可能更对路。
AI导读
核心看点
  • Django创始人亲笔撰写,权威指南
  • 从安装配置到高级功能,系统讲解
  • 实战导向,引导构建完整Web应用
读者共识
  • Django入门几乎唯一的经典选择
  • 适合速成,一周可搭建简易站点
  • 部分版本较老,需留意版本差异
精彩摘录
  • "一个值得注意的例外是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"
用户评论
看了最核心的第一部分,不到一周时间利用django+bootstrap3+xampp就搭建了一个很像样的网站。果然适合Lean Startup,强烈推荐!
没读完
讲的挺不错的,django 的资料真是不多啊。。。
http://djangobook.py3k.cn
objects.all() book_set 。。。。太奇怪了
Django能解决问题吗?
读过中文版本
关于django的极好的书, 可惜又是没有用来做出像样的东西。我这是怎么了啊!
下载
收藏