“Django/docs/2.2.x/faq/index”的版本间差异
来自菜鸟教程
Django/docs/2.2.x/faq/index
(autoload) |
小 (Page commit) |
||
第1行: | 第1行: | ||
+ | {{DISPLAYTITLE:Django 常见问题 — Django 文档}} | ||
<div id="django-faq" class="section"> | <div id="django-faq" class="section"> | ||
第5行: | 第6行: | ||
<div class="toctree-wrapper compound"> | <div class="toctree-wrapper compound"> | ||
− | * [[../general| | + | * [[../general|常见问题:一般]] |
− | ** [[../general#why-does-this-project-exist| | + | ** [[../general#why-does-this-project-exist|为什么会有这个项目?]] |
− | ** [[../general#what-does-django-mean-and-how-do-you-pronounce-it| | + | ** [[../general#what-does-django-mean-and-how-do-you-pronounce-it|“姜戈”是什么意思,你怎么发音?]] |
− | ** [[../general#is-django-stable|Django | + | ** [[../general#is-django-stable|Django 稳定吗?]] |
− | ** [[../general#does-django-scale|Django | + | ** [[../general#does-django-scale|Django 可以扩展吗?]] |
− | ** [[../general#who-s-behind-this| | + | ** [[../general#who-s-behind-this|这是谁的幕后推手?]] |
− | ** [[../general#how-is-django-licensed|Django | + | ** [[../general#how-is-django-licensed|Django 是如何获得许可的?]] |
− | ** [[../general#why-does-django-include-python-s-license-file|为什么 Django 包含 Python | + | ** [[../general#why-does-django-include-python-s-license-file|为什么 Django 包含 Python 的许可文件?]] |
− | ** [[../general#which-sites-use-django| | + | ** [[../general#which-sites-use-django|哪些网站使用 Django?]] |
− | ** [[../general#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names|Django 似乎是一个 MVC | + | ** [[../general#django-appears-to-be-a-mvc-framework-but-you-call-the-controller-the-view-and-the-view-the-template-how-come-you-don-t-use-the-standard-names|Django 似乎是一个 MVC 框架,但您将控制器称为“视图”,将视图称为“模板”。 你怎么不使用标准名称?]] |
− | ** [[../general#framework-x-does-feature-y-why-doesn-t-django| | + | ** [[../general#framework-x-does-feature-y-why-doesn-t-django|做 – 为什么 Django 没有?]] |
− | ** [[../general#why-did-you-write-all-of-django-from-scratch-instead-of-using-other-python-libraries| | + | ** [[../general#why-did-you-write-all-of-django-from-scratch-instead-of-using-other-python-libraries|为什么你从头开始编写所有 Django,而不是使用其他 Python 库?]] |
− | ** [[../general#is-django-a-content-management-system-cms|Django | + | ** [[../general#is-django-a-content-management-system-cms|Django 是内容管理系统 (CMS) 吗?]] |
− | ** [[../general#how-can-i-download-the-django-documentation-to-read-it-offline| | + | ** [[../general#how-can-i-download-the-django-documentation-to-read-it-offline|如何下载 Django 文档以离线阅读?]] |
− | ** [[../general#how-do-i-cite-django| | + | ** [[../general#how-do-i-cite-django|我如何引用 Django?]] |
− | * [[../install| | + | * [[../install|常见问题:安装]] |
− | ** [[../install#how-do-i-get-started| | + | ** [[../install#how-do-i-get-started|我该如何开始?]] |
− | ** [[../install#what-are-django-s-prerequisites| | + | ** [[../install#what-are-django-s-prerequisites|Django 的先决条件是什么?]] |
− | ** [[../install#what-python-version-can-i-use-with-django| | + | ** [[../install#what-python-version-can-i-use-with-django|我可以在 Django 中使用什么 Python 版本?]] |
− | ** [[../install#what-python-version-should-i-use-with-django| | + | ** [[../install#what-python-version-should-i-use-with-django|我应该在 Django 中使用什么 Python 版本?]] |
− | ** [[../install#should-i-use-the-stable-version-or-development-version| | + | ** [[../install#should-i-use-the-stable-version-or-development-version|我应该使用稳定版还是开发版?]] |
− | * [[usage | + | * [[../usage|常见问题:使用 Django]] |
− | ** [[../usage#why-do-i-get-an-error-about-importing-django-settings-module| | + | ** [[../usage#why-do-i-get-an-error-about-importing-django-settings-module|为什么在导入 DJANGO_SETTINGS_MODULE 时出现错误?]] |
− | ** [[../usage#i-can-t-stand-your-template-language-do-i-have-to-use-it| | + | ** [[../usage#i-can-t-stand-your-template-language-do-i-have-to-use-it|我受不了你的模板语言。 我必须使用它吗?]] |
− | ** [[../usage#do-i-have-to-use-your-model-database-layer| | + | ** [[../usage#do-i-have-to-use-your-model-database-layer|我必须使用你的模型/数据库层吗?]] |
− | ** [[../usage#how-do-i-use-image-and-file-fields| | + | ** [[../usage#how-do-i-use-image-and-file-fields|如何使用图像和文件字段?]] |
− | ** [[../usage#how-do-i-make-a-variable-available-to-all-my-templates| | + | ** [[../usage#how-do-i-make-a-variable-available-to-all-my-templates|如何使变量可用于所有模板?]] |
− | * [[../help| | + | * [[../help|常见问题:获得帮助]] |
− | ** [[../help#how-do-i-do-x-why-doesn-t-y-work-where-can-i-go-to-get-help| | + | ** [[../help#how-do-i-do-x-why-doesn-t-y-work-where-can-i-go-to-get-help|我怎么做X? 为什么 Y 不起作用? 我可以去哪里寻求帮助?]] |
− | ** [[../help#why-hasn-t-my-message-appeared-on-django-users| | + | ** [[../help#why-hasn-t-my-message-appeared-on-django-users|为什么我的消息没有出现在 django-users 上?]] |
− | ** [[../help#nobody-on-django-users-answered-my-question-what-should-i-do| | + | ** [[../help#nobody-on-django-users-answered-my-question-what-should-i-do|django-users 上没有人回答我的问题! 我该怎么办?]] |
− | ** [[../help#i-think-i-ve-found-a-bug-what-should-i-do| | + | ** [[../help#i-think-i-ve-found-a-bug-what-should-i-do|我想我发现了一个错误! 我该怎么办?]] |
− | ** [[../help#i-think-i-ve-found-a-security-problem-what-should-i-do| | + | ** [[../help#i-think-i-ve-found-a-security-problem-what-should-i-do|我想我发现了一个安全问题! 我该怎么办?]] |
− | * [[../models| | + | * [[../models|常见问题:数据库和模型]] |
− | ** [[../models#how-can-i-see-the-raw-sql-queries-django-is-running| | + | ** [[../models#how-can-i-see-the-raw-sql-queries-django-is-running|如何查看 Django 正在运行的原始 SQL 查询?]] |
− | ** [[../models#can-i-use-django-with-a-pre-existing-database| | + | ** [[../models#can-i-use-django-with-a-pre-existing-database|我可以将 Django 与预先存在的数据库一起使用吗?]] |
− | ** [[../models#if-i-make-changes-to-a-model-how-do-i-update-the-database| | + | ** [[../models#if-i-make-changes-to-a-model-how-do-i-update-the-database|如果我对模型进行了更改,如何更新数据库?]] |
− | ** [[../models#do-django-models-support-multiple-column-primary-keys|Django | + | ** [[../models#do-django-models-support-multiple-column-primary-keys|Django 模型是否支持多列主键?]] |
** [[../models#does-django-support-nosql-databases|Django 支持 NoSQL 数据库吗?]] | ** [[../models#does-django-support-nosql-databases|Django 支持 NoSQL 数据库吗?]] | ||
− | ** [[../models#how-do-i-add-database-specific-options-to-my-create-table-statements-such-as-specifying-myisam-as-the-table-type|如何将特定于数据库的选项添加到我的 CREATE TABLE 语句中,例如将 | + | ** [[../models#how-do-i-add-database-specific-options-to-my-create-table-statements-such-as-specifying-myisam-as-the-table-type|如何将特定于数据库的选项添加到我的 CREATE TABLE 语句中,例如将 MyISAM 指定为表类型?]] |
− | * [[../admin| | + | * [[../admin|常见问题:管理员]] |
− | ** [[../admin#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages| | + | ** [[../admin#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages|我无法登录。 当我输入有效的用户名和密码时,它只会再次显示登录页面,没有错误消息。]] |
− | ** [[../admin#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error| | + | ** [[../admin#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error|我无法登录。 当我输入有效的用户名和密码时,它再次显示登录页面,并显示“请输入正确的用户名和密码”错误。]] |
− | ** [[../admin#how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin| | + | ** [[../admin#how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin|如何自动将字段的值设置为上次在管理员中编辑对象的用户?]] |
− | ** [[../admin#how-do-i-limit-admin-access-so-that-objects-can-only-be-edited-by-the-users-who-created-them| | + | ** [[../admin#how-do-i-limit-admin-access-so-that-objects-can-only-be-edited-by-the-users-who-created-them|如何限制管理员访问权限,以便对象只能由创建它们的用户编辑?]] |
− | ** [[../admin#my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi| | + | ** [[../admin#my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi|我的管理站点 CSS 和图像使用开发服务器显示正常,但在使用 mod_wsgi 时没有显示。]] |
− | ** [[../admin#my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display|我的“list_filter”包含一个 | + | ** [[../admin#my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display|我的“list_filter”包含一个 ManyToManyField,但过滤器不显示。]] |
− | ** [[../admin#some-objects-aren-t-appearing-in-the-admin| | + | ** [[../admin#some-objects-aren-t-appearing-in-the-admin|某些对象未出现在管理中。]] |
− | ** [[../admin#how-can-i-customize-the-functionality-of-the-admin-interface| | + | ** [[../admin#how-can-i-customize-the-functionality-of-the-admin-interface|如何自定义管理界面的功能?]] |
− | ** [[../admin#the-dynamically-generated-admin-site-is-ugly-how-can-i-change-it| | + | ** [[../admin#the-dynamically-generated-admin-site-is-ugly-how-can-i-change-it|动态生成的管理站点很丑! 我怎样才能改变它?]] |
− | ** [[../admin#what-browsers-are-supported-for-using-the-admin| | + | ** [[../admin#what-browsers-are-supported-for-using-the-admin|使用管理员支持哪些浏览器?]] |
− | * [[../contributing| | + | * [[../contributing|常见问题:贡献代码]] |
− | ** [[../contributing#how-can-i-get-started-contributing-code-to-django| | + | ** [[../contributing#how-can-i-get-started-contributing-code-to-django|如何开始向 Django 贡献代码?]] |
− | ** [[../contributing#i-submitted-a-bug-fix-in-the-ticket-system-several-weeks-ago-why-are-you-ignoring-my-patch| | + | ** [[../contributing#i-submitted-a-bug-fix-in-the-ticket-system-several-weeks-ago-why-are-you-ignoring-my-patch|几周前我在票务系统中提交了一个错误修复。 你为什么忽略我的补丁?]] |
− | ** [[../contributing#when-and-how-might-i-remind-the-team-of-a-patch-i-care-about| | + | ** [[../contributing#when-and-how-might-i-remind-the-team-of-a-patch-i-care-about|我何时以及如何提醒团队我关心的补丁?]] |
− | ** [[../contributing#but-i-ve-reminded-you-several-times-and-you-keep-ignoring-my-patch| | + | ** [[../contributing#but-i-ve-reminded-you-several-times-and-you-keep-ignoring-my-patch|但是我已经提醒你好几次了,你一直无视我的补丁!]] |
− | * [[../troubleshooting| | + | * [[../troubleshooting|故障排除]] |
− | ** [[../troubleshooting#problems-running-django-admin| | + | ** [[../troubleshooting#problems-running-django-admin|运行问题 <code>django-admin</code>]] |
− | ** [[../troubleshooting#miscellaneous| | + | ** [[../troubleshooting#miscellaneous|各种各样的]] |
第69行: | 第70行: | ||
</div> | </div> | ||
+ | <div class="clearer"> | ||
− | [[Category:Django 2.2.x | + | |
+ | |||
+ | </div> | ||
+ | |||
+ | [[Category:Django 2.2.x 文档]] |
2021年10月31日 (日) 04:04的最新版本
Django FAQ
- 常见问题:一般
- 常见问题:安装
- 常见问题:使用 Django
- 常见问题:获得帮助
- 常见问题:数据库和模型
- 常见问题:管理员
- 我无法登录。 当我输入有效的用户名和密码时,它只会再次显示登录页面,没有错误消息。
- 我无法登录。 当我输入有效的用户名和密码时,它再次显示登录页面,并显示“请输入正确的用户名和密码”错误。
- 如何自动将字段的值设置为上次在管理员中编辑对象的用户?
- 如何限制管理员访问权限,以便对象只能由创建它们的用户编辑?
- 我的管理站点 CSS 和图像使用开发服务器显示正常,但在使用 mod_wsgi 时没有显示。
- 我的“list_filter”包含一个 ManyToManyField,但过滤器不显示。
- 某些对象未出现在管理中。
- 如何自定义管理界面的功能?
- 动态生成的管理站点很丑! 我怎样才能改变它?
- 使用管理员支持哪些浏览器?
- 常见问题:贡献代码
- 故障排除