... スの少ない方法で文書の変更を行う方法について説明します。 Django のドキュメント作成プロセス Django のドキュメントは、 https://docs.djangoproject.com/ で HTML として読まれることを想定していますが、柔軟性を最大にするために、 reStructuredText マークアップ言 ... アクティブにし、依存関係をインストールします: $ python -m venv .venv $ source .venv/bin/activate $ python -m pip install -r docs/requirements.txt ドキュメントをローカルでビルドする docs ディレクトリから HTML 出力をビルドできます: / $ cd docs $ mak ... e html ...\> cd docs ...\> make.bat html ローカルにビルドされたドキュメントは _build/html/index.html にアクセスできるようになり、どのウェブブラ ... ... e-notification distribution list (needed for security release preparation tasks). Access to the Django project on Read the Docs . Pre-release tasks A few items need to be taken care of before even beginning the release process. This stuff starts abou ... around 1500 UTC. They will fix one security defect with severity "moderate". For details of severity levels, see: https://docs.djangoproject.com/en/dev/internals/security/#how-django-discloses-security-issues Prepare issue metadata: * Severity * Sho ... on version support. Double-check that the release notes index has a link to the notes for the new release; this will be in docs/releases/index.txt . If this is a feature release , ensure translations from Transifex have been integrated. In addition t ... ... ngo の API や挙動が変更された場合。 Django のドキュメントはコードと同じソースコード管理システム下にあり、 Git リポジトリの docs ディレクトリ以下に置かれています。オンラインで表示される各ドキュメントは、レポジトリ上でそれぞれ別々のテキストファイルに分 ... キュメントを入手するにはいくつか方法があります。おすすめの順に以 下に示します。 Web 版 Django ドキュメントの最新版は https://docs.djangoproject.com/en/dev/ にあります。ここにある HTML ページは、ソースコード管理システム上のテキストファイルから自動生成さ ... プレーンテキスト形式でも読めます。 Django の公式リリース版を使っているなら、ソースコードのアーカイブパッケージ (tarball) に docs/ ディレクトリが入っています。このディレクトリには各リリースの全てのドキュメントが入っています。 Django の開発版 (別名 main ... ... install tox ...\> tox By default, tox runs the test suite with the bundled test settings file for SQLite, black , blacken-docs , flake8 , isort , lint-docs , zizmor , and the documentation spelling checker. In addition to the system dependencies not ... the appropriate version of Python. A list of default environments can be seen as follows: / $ tox -l py3 black blacken-docs flake8>=3.7.0 docs isort>=7.0.0 lint-docs zizmor>=1.19.0 ...\> tox -l py3 black blacken-docs flake8> =3.7.0 docs isort> =7 ... .0.0 lint-docs zizmor> =1.19.0 Testing other Python versions and database backends In addition to the default environments, tox supports ... ... plicable. Add a description of the deprecated behavior, and the upgrade path if applicable, to the current release notes ( docs/releases/A.B.txt ) under the "Features deprecated in A.B" heading. Add an entry in the deprecation timeline ( docs/interna ... ge is considered trivial . All code changes Does the coding style conform to our guidelines? Are there any black , blacken-docs , flake8 , isort , or zizmor errors? You can install the pre-commit hooks to automatically catch these errors. If the chan ... ge is backwards incompatible in any way, is there a note in the release notes ( docs/releases/A.B.txt )? Is Django's test suite passing? If there is a code coverage report comment on the pull request, have y ... ... untests.py ...\> runtests.py ドキュメントを書く これは新たな機能です。したがってドキュメントを作る必要があります。ファイル docs/topics/http/shortcuts.txt を開いて、このファイルの最終行に以下を加えます。 ``make_toast()`` ================ .. function : ... ase it is also added to the release notes for the next version of Django. Open the release notes for the latest version in docs/releases/ , which at time of writing is 6.2.txt . Add a note under the "Minor Features" header: :mod:`django.shortcuts` ~~ ... args, **kwargs): # Finally, fall back and assume it's a URL return to + + +def make_toast(): + return 'toast' diff --git a/docs/releases/6.2.txt b/docs/releases/6.2.txt index 7d85d30c4a..81518187b3 100644 --- a/docs/releases/6.2.txt +++ b/docs/releas ... ... uild the documentation: / $ python -m pip install -U pip $ python -m pip install -e . -r tests/requirements/py3.txt -r docs/requirements.txt ...\> py -m pip install -U pip ...\> py -m pip install -e . -r tests\requirements\py3.txt -r docs\require ... before you start, so you can tell whether a later failure was caused by your changes. Build the documentation: / $ cd docs && make html && cd .. ...\> cd docs && make.bat html && cd .. Finding a ticket to work on Finding a workable ticket is a c ... ... 会もありますが、完全に翻訳するのは大変な作業です(警告しましたよ!)。私たちは同じ Transifex tool を使っています。少なくとも docs/intro/* ファイルがあなたの言語で完全に翻訳されると、 https://docs.djangoproject.com/<language_code>/ に翻訳が表示されます。 ... 翻訳が公開されると、Transifex からの更新版は不定期に django/django-docs-translations リポジトリとドキュメンテーションウェブサイトに移植されます。最新の安定版 Django リリースの翻訳だけが更新されま ... ... on backend can provide this implementation and it will be used by django.contrib.auth.models.User . See the authentication docs for more information. Permissions for anonymous users If you provide a custom auth backend with supports_anonymous_user se ... te the question of whether something is allowed or not to the authorization/authentication backend. See the authentication docs for more details. Relaxed requirements for usernames The built-in User model's username field now allows a wider range of ... E UPGRADE INSTRUCTIONS to fix those templates. Documentation removed The upgrade notes have been removed in current Django docs. Please refer to the docs for Django 1.3 or older to find these instructions. CsrfViewMiddleware is included in MIDDLEWARE ... ... tickets This will help you build familiarity with the codebase and processes. Mark the appropriate flags if a patch needs docs or tests. Look through the changes a patch makes, and keep an eye out for syntax that is incompatible with older but still ... いうショットガンアプローチは、結局、良いことよりも悪いことの方が多いのです。 Be rigorous When we say " PEP 8 , and must have docs and tests", we mean it. If a patch doesn't have docs and tests, there had better be a good reason. Arguments like "I could ... 2026年10月08日