书籍介绍
这不本教你从零搭建第一个 Django 项目的入门书,而是给'教程读完之后'的人看的实战手册。它把两位作者多年踩坑攒下的最佳实践,浓缩成一句好记的口诀:Fat Models, Helper Functions, Thin Views, Stupid Templates——模型多担待,视图别臃肿,模板傻瓜化。书里几乎每一页都是一个可落地的具体建议:用 settings 目录而非单一配置文件管理环境,用环境变量藏好密钥而非写死在代码里,用 Meta.fields 精确控制暴露字段,以及被读者反复点名的 CBV(基于类的视图)。它不追求系统性的工程讲解,反而带着作者鲜明的碎碎念式主观判断,甚至有些观点颇具争议。正因如此,它更适合已有一定 Django 基础、想给现有项目做'体检和升级'的开发者,而非纯新手。
作者简介
Daniel Greenfeld and Audrey Roy are best known for their open-source community leadership work on the following initiatives:
DjangoPackages.com and the OpenComparison framework. We ran the largest sprint at PyCon 2011.
PyLadies, a women's outreach/mentorship group. Nurturing the group was basically a 2nd fulltime job for us in 2011.
The first ever PyCon Philippines, a 300-person conference about the Python programming language held in the Philippines.
The LA Open Source Hackathon event series, which brings together open-source developers from different programming backgrounds.
They do Python and Django development and run a small Python/Django consulting shop called Cartwheel Web.