python 我在哪里可以下载 Django 文档?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2195089/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-04 00:01:18  来源:igfitidea点击:

Where can I download the Django documentation?

pythondjangodocumentation

提问by Ram Rachum

Django's website seems good but for some reason I couldn't find where to download the documentation:

Django 的网站看起来不错,但由于某种原因,我找不到下载文档的位置:

http://docs.djangoproject.com/en/1.1/

http://docs.djangoproject.com/en/1.1/

(Yes, I need the docs for 1.1)

(是的,我需要 1.1 的文档)

Does anyone know?

有人知道吗?

采纳答案by Michael Greene

Django's documentation is built using Sphinxand included in their source tree.

Django 的文档是使用Sphinx构建的,并包含在它们的源代码树中

From a checked-out copy of Django's source, just run makein the docs directory. You can find instructions for getting the source here: http://www.djangoproject.com/download/

从 Django 源代码的检出副本中,只需make在 docs 目录中运行即可。您可以在此处找到获取源代码的说明:http: //www.djangoproject.com/download/

回答by Non

Offline Documentation for Django 1.2, 1.3and 1.4in various formats:

Django的离线文档1.21.31.4的各种格式:

http://readthedocs.org/projects/django/downloads/

http://readthedocs.org/projects/django/downloads/

回答by hcs42

You can download offline documentation for Django 1.1, 1.2 and 1.3 in both PDF and HTML from http://sramana.github.com/dod/.

您可以从http://sramana.github.com/dod/下载 PDF 和 HTML 格式的 Django 1.1、1.2 和 1.3 离线文档。

回答by gamesbook

"Okay, I just did it manually using sphinx-build. It was a pretty bad experience."

“好吧,我只是使用 sphinx-build 手动完成的。这是一次非常糟糕的体验。”

Hmm. I just tried and it was a pretty smooth experience (and I have never done this before). Here's the Linux recipe:

唔。我刚刚尝试过,这是一次非常流畅的体验(我以前从未这样做过)。这是 Linux 食谱:

  1. "cd" to the directory where your Django 1.2.x download has been extracted (in my case "~/downloads/Django-1.2.1")
  2. cd docs
  3. make latex PAPER=a4
  4. cd _build/latex
  5. make all-pdf
  1. “cd”到您的 Django 1.2.x 下载已被解压缩的目录(在我的例子中是“~/downloads/Django-1.2.1”)
  2. 光盘文档
  3. 制作乳胶纸=a4
  4. cd _build/乳胶
  5. 制作全pdf

And the end result is 1000 page tome of Django goodness!

最终的结果是 1000 页的 Django 精华!

回答by maciek

In the bottom of right sidebar there are links to zipped HTML version, PDF version and ePub version.

在右侧边栏的底部有指向压缩的 HTML 版本、PDF 版本和 ePub 版本的链接。

https://docs.djangoproject.com/en/stable/

https://docs.djangoproject.com/en/stable/

回答by Thomas Cox

To generate PDF version in Ubuntu, you need to download 700-900 MB of Latex packages. Even if you are not in a developing country, keeping a local copy of docs is useful. Just in case the Django site is down or when you need to refer to something while traveling.Django docs are written in ReStructuredText (RST) and you need Sphinx tool to generate HTML version http://sramana.github.com/dod/

要在 Ubuntu 中生成 PDF 版本,您需要下载 700-900 MB 的 Latex 包。即使您不在发展 CN 家,保留一份本地文档副本也很有用。以防万一 Django 站点关闭或当您需要在旅行时参考某些内容时。Django 文档是用 ReStructuredText (RST) 编写的,您需要 Sphinx 工具来生成 HTML 版本 http://sramana.github.com/dod/