... GitHub pull request containing the changes for Trac ticket #xxxxx. By creating a fully-ready pull request, you will make the reviewer' ... c branches are the main and stable/A.B.x branches in the django/django repository. When you think your work is ready to be pulled into Django, you should create a pull request at GitHub. A good pull request means: commits with one logical change in e ... umentation changes. The test suite must pass and the documentation must build without warnings. Once you have created your pull request, you should add a comment in the related Trac ticket explaining what you've done. In particular, you should note t ... ... whether a ticket describes a real issue and keeping the tracker organized. Bug fixers: anyone can contribute by opening a pull request and working on a solution for a ticket. Reviewers: anyone can review pull requests and suggest improvements. Merge ... ly want you to help! For example, here's the typical lifecycle of a ticket: Alice creates a ticket and opens an incomplete pull request (missing tests, incorrect implementation). Bob reviews the pull request, marks the ticket as "Accepted", sets the ... atch. This puts the ticket automatically into the "waiting on author" queue within the "accepted" stage. Alice updates the pull request, adding tests (but not yet fixing the implementation), and removes the two flags. The ticket moves into the "needs ... ... ly trivial issue, for example changing a word in the documentation, the preferred way to provide the patch is using GitHub pull requests without a Trac ticket. See Working with Git and GitHub for more details on how to use pull requests. "Claiming" t ... ing feature, the change should also contain documentation. When you think your work is ready to be reviewed, send a GitHub pull request . If you can't send a pull request for some reason, you can also use patches in Trac. When using this style, follo ... maintainer time. Automated AI Reviews Do not request automated AI reviews (for example GitHub Copilot or similar tools) on pull requests submitted to the Django repository. These reviews do not replace human review and often generate noise that distr ... ... m ...\> git checkout -b ticket_TicketNumber upstream/main When your work is ready, push the branch to your fork and open a pull request. See Submitting contributions for the full process. Continuing someone else's work If you're continuing the work f ... rom someone else's pull request on GitHub, things can be tricky. You need to pull their branch, but then push it to your GitHub repository fork. R ... un the following, replacing PRNumber and TicketNumber with the actual pull request and Trac ticket numbers: / $ git fetch upstream pull/PRNumber/head:ticket_TicketNumber $ git checkout ticket_T ... ... ルリクエストをチェックすることが多くなったら、この git エイリアスが役立つでしょう: [alias] pr = !sh -c \"git fetch upstream pull/${1}/head:pr/${1} && git checkout pr/${1}\" これを ~/.gitconfig に追加し、 upstream を django/django に設定してください。そ ... mmit --amend を使って、コミットの品質が期待通りのものであることを確認しましょう。準備ができたら次のようにします: / $ # Pull in the latest changes from main. $ git checkout main $ git pull upstream main $ # Rebase the pull request on main. $ git c ... ou expect will be pushed to upstream. $ git push --dry-run upstream main $ # Push! $ git push upstream main $ # Delete the pull request branch. $ git branch -d pr/xxxx ...\> REM Pull in the latest changes from main. ...\> git checkout main ...\> git ... ... fferent virtual environments. Django includes a basic tox.ini that automates some checks that our build server performs on pull requests. To run the unit tests and other checks (such as import sorting , the documentation spelling checker , and code f ... excludes several directories not relevant to the results (test code or external code included in Django). Code coverage on pull requests Django's continuous integration (CI) system automatically runs code coverage analysis on pull requests and posts ... rs see which lines in the changed code are covered by tests. What the coverage report shows: The coverage report posted on pull requests uses diff-cover to analyze only the lines that were changed or added in the PR. It shows: Lines that are covered ... ... ーカライズ を参照してください。 The format files aren't managed by the use of Transifex. To change them, you must: Create a pull request against the Django Git main branch, as for any code change. Open a ticket in Django's ticket system, set its Compo ... nent field to Translations , set the "has patch" flag, and include the link to the pull request. ドキュメント ドキュメントを翻訳する機会もありますが、完全に翻訳するのは大変な作業です(警告しましたよ!)。私たちは ... ... ease branch, so you should make sure you're on an up-to-date stable branch. For example: $ git checkout stable/4.1.x $ git pull If this is a security release, merge the appropriate patches from django-security . Rebase these patches as necessary to m ... h from the django-docs-translations repository . For example, when releasing Django 4.2: $ git checkout stable/4.2.x $ git pull $ python manage_translations.py robots_txt Post the release announcement to the django-announce mailing list and the Djang ... n --domain = django processing locale en $ django-admin makemessages -l en --domain = djangojs processing locale en Make a pull request against the corresponding stable branch and merge once approved. Forward port the updated source translations to t ... ... ple! Django 自体の作業は、大きく3つの分野に分けられます: Contributing code Fix a bug, or add a new feature. You can make a pull request and see your code in the next version of Django. Contributing code Tutorials How-to ガイド Related topics Contribu ... ... ページ から作成できます。"Your recently pushed branches" の下にあなたのブランチが表示されているはずです。その下の "Compare & pull request" ボタンをクリックします。 このチュートリアルでは実行してはいけませんが、次のページで変更のプレビューが表示されたら ... 、「Create pull request」ボタンをクリックします。 次のステップ おめでとうございます! これで Django へのプルリクエストの作成方法を学ぶことが ... 2026年10月08日