python - 理解 Django 内部工作——从哪里开始?

标签 python django

<分区>

我已经接触了 Django 并成功地创建了一个项目。

我不明白的是整个 Django 框架究竟是如何工作的,例如内部结构,哪一行代码首先执行,为什么,请求和响应周期之间的工作流是什么等等?我可能问错了问题。

了解 Django 框架的最佳方式是什么?

最佳答案

我建议您从 Django in depth 开始詹姆斯·贝内特的视频。他是 Django 核心团队的成员,自 2005 年以来一直参与其中。视频描述说:

This is a tutorial that goes beyond most tutorials; it's meant for developers who already know a bit about Django and want to really understand the inner guts of the framework. This tutorial will not involve writing code or apps; rather, it'll be a deep tour of the workings and APIs of Django itself, across all the bundled components and at all levels of the stack.

我个人非常喜欢这个视频,它是我了解 Django 的起点。

关于python - 理解 Django 内部工作——从哪里开始?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45285524/

相关文章:

python - Django 保存方法静默失败

Python追加到列表中的字符串元素

python - 使用正则表达式检查数据集是否存在,无需先读取所有数据集的路径

python - sslobj.do_handshake 失败和 "error: [Errno 0] Error"

python - django、python、postgres 和 web 部署

jquery - Django 应用程序 - Ajax 在 2 个字符和 1 秒延迟后自动完成

python - 我希望我的 django rest 框架序列化程序接受输入但不添加到模型

python - 关于在 Python3 中将空格与一元运算符一起使用的逻辑

django - 如何将自定义函数应用于 Django 中多个查询中的特定字段

python - 如何在删除关联的 python 解释器后重建 virtualenvs