{"title":"\"How-to\" guides","version":"2.1","locale":"zh-hans","docname":"howto/index","url":"/zh-hans/2.1/howto/","canonical":"https://djangodocs.dev/zh-hans/2.1/howto/","summary":"Here you'll find short answers to \"How do I....?\" types of questions. These how-to guides don't cover topics in depth -- you'll find that material in the…","html":"<h1>&quot;How-to&quot; guides<a class=\"heading-anchor\" href=\"#how-to-guides\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>Here you'll find short answers to &quot;How do I....?&quot; types of questions. These\nhow-to guides don't cover topics in depth -- you'll find that material in the\n<a class=\"reference internal\" href=\"/zh-hans/2.1/topics/\"><span class=\"doc\">Using Django</span></a> and the <a class=\"reference internal\" href=\"/zh-hans/2.1/ref/\"><span class=\"doc\">API Reference</span></a>. However, these guides will help\nyou quickly accomplish common tasks.</p>\n<div class=\"toctree-wrapper compound\">\n<ul>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/auth-remote-user/\">使用 <code class=\"docutils literal notranslate\">REMOTE_USER</code> 进行身份验证</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/custom-management-commands/\">编写自定义 <code class=\"docutils literal notranslate\">django-admin</code> 的命令</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/custom-model-fields/\">编写自定义 model fields</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/custom-lookups/\">自定义查找</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/custom-template-tags/\">自定义模板（template）的标签（tags）和过滤器（filters）</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/custom-file-storage/\">编写一个自定义存储系统</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/deployment/\">部署Django</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/upgrade-version/\">升级 Django 到最新的版本</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/error-reporting/\">发送错误</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/initial-data/\">为模型提供初始化的数据</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/jython/\">基于 Jython 的 Django</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/legacy-databases/\">Integrating Django with a legacy database</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/outputting-csv/\">Outputting CSV with Django</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/outputting-pdf/\">Outputting PDFs with Django</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/overriding-templates/\">Overriding templates</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/static-files/\">Managing static files (e.g. images, JavaScript, CSS)</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/static-files/deployment/\">Deploying static files</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/windows/\">如何在Windows上安装Django</a></li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/zh-hans/2.1/howto/writing-migrations/\">Writing database migrations</a></li>\n</ul>\n</div>\n<aside class=\"admonition admonition-seealso\" role=\"note\">\n<p class=\"admonition-title\">See also</p>\n<p>The <a class=\"reference external\" href=\"https://www.djangoproject.com/community/\">Django community aggregator</a>, where we aggregate content from the\nglobal Django community. Many writers in the aggregator write this sort of\nhow-to material.</p>\n</aside>","rootId":"how-to-guides","toc":[],"breadcrumbs":[],"prev":{"docname":"topics/external-packages","title":"External packages","url":"/zh-hans/2.1/topics/external-packages/"},"next":{"docname":"howto/auth-remote-user","title":"使用 REMOTE_USER 进行身份验证","url":"/zh-hans/2.1/howto/auth-remote-user/"},"formats":{"html":"/zh-hans/2.1/howto/","markdown":"/zh-hans/2.1/howto.md","json":"/zh-hans/2.1/howto.json"},"source":"https://github.com/django/django/blob/stable/2.1.x/docs/howto/index.txt","official":"https://docs.djangoproject.com/zh-hans/2.1/howto/","inVersions":["6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0","2.2","2.1","2.0"],"inLocales":["en","zh-hans","fr","ja","id","pt-br","ko","es","el","pl"]}