The Definitive Guide to Django, 2nd Edition - Adrian Holovaty

The Definitive Guide to Django, 2nd Edition

Adrian Holovaty

出版社

Apress

出版时间

2009-06-30

ISBN

9781430219361

评分

★★★★★

标签

web编程

书籍介绍

This latest edition of The Definitive Guide to Django is updated for Django 1.1, and, with the forward–compatibility guarantee that Django now provides, should serve as the ultimate tutorial and reference for this popular framework for years to come.

Django, the Python–based equivalent to Ruby’s Rails web development framework, is one of the hottest topics in web development today. Lead developer Jacob Kaplan–Moss and Django creator Adrian Holovaty show you how they use this framework to create award–winning web sites by guiding you through the creation of a web application reminiscent of ChicagoCrime.org.

The Definitive Guide to Django is broken into three parts, with the first introducing Django fundamentals such as installation and configuration, and creating the components that together power a Django–driven web site. The second part delves into the more sophisticated features of Django, including outputting non–HTML content such as RSS feeds and PDFs, caching, and user management. The appendixes serve as a detailed reference to Django’s many configuration options and commands.

What you’ll learn

The first half of this book explains in depth how to build web applications using Django including the basics of dynamic web pages, the Django templating system interacting with databases, and web forms.

The second half of this book discusses higher-level concepts such as caching, security, and how to deploy Django.

The appendixes form a reference for the commands and configurations available in Django.

Who this book is for

Anyone who wants to use the powerful Django framework to build dynamic web sites quickly and easily.

AI导读
核心看点
  • Django创始人亲笔,权威且详尽的框架指南
  • 从安装配置到高级特性,系统讲解Web开发
  • 深入剖析MTC架构、中间件及安全机制原理
适合谁读
  • 希望系统学习Django框架的Python开发者
  • 寻求从入门到精通的Web应用程序构建者
  • 对Django底层逻辑和最佳实践感兴趣的读者
读前提醒
  • 本书基于Django 1.1,代码需对照新版调整
  • 建议结合官方最新文档阅读,注意版本差异
  • 可参考免费在线版,获取更及时的更新内容
读者共识
  • 讲解清晰易懂,是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"
作者简介
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.
目录
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,一口气读完前五章,很不错。通俗易懂。
收藏