... ySet 。 publish-these-articles 関数は ModelAdmin やリクエストオブジェクトを必要としませんが、クエリセットを使用します: def make_published ( modeladmin , request , queryset ): queryset . update ( status = "p" ) 注釈 最高のパフォーマンスを得るために、ク ... の、しかし便利なステップを踏んで、管理画面でアクションに "素敵な "タイトルをつけましょう。デフォルトでは、このアクションは "Make published "としてアクションリストに表示されます。しかし、 make_published 関数に action() デコレータを使用することで、より良 ... ができます: from django.contrib import admin ... @admin . action ( description = "Mark selected stories as published" ) def make_published ( modeladmin , request , queryset ): queryset . update ( status = "p" ) 注釈 これには見覚えがあるかもしれません。 ... ... みます。以下はその架空の詳細です。 チケット #99999 -- トーストを焼くようにする Django は、 toast を返す関数 django.shortcuts.make_toast() を提供しなければなりません。 これよりこの機能と関連するテストを実装します。 ブランチを作る 変更を加える前に、チケッ ... 役立たないからです。 ハンズオンでの例題に移りましょう。 チケット #99999 に対するテストの実装 このチケットを解決するために、 make_toast() 関数に django.shortcuts モジュールに追加します。まずはこの関数を使うためのテストを書いて、関数の出力が正しいことを ... 確認しましょう。 Djangoの tests/shortcuts/ フォルダへ移動して test_make_toast.py というファイルを新たに作ります。以下のコードを追加してください。 from django.shortcuts import make_toast from dja ... ... が、 このドキュメントをそれに応じて更新してください! オーバービュー There are three types of releases that you might need to make: Security releases: disclosing and fixing a vulnerability. This'll generally involve two or three simultaneous releases -- ... access and permissions. A Unix environment with these tools installed (in alphabetical order): bash (version 4.0+) git GPG make man hashing tools (typically md5sum , sha1sum , and sha256sum on Linux, or md5 and shasum on macOS) python A GPG key pair. ... ype * CAPEC Impact Type * CVSS (4.0) Score & Vector A few days before any release As the release approaches, watch Trac to make sure no release blockers are left for the upcoming release. Under exceptional circumstances, such as to meet a pre-determi ... ... Text を他のフォーマット、例えば HTML や PDF に変換できます。このコマンドは設定可能ですが、Djangoのドキュメンテーションには Makefile があり、より短い make html コマンドを提供しています。 ドキュメントの構成 ドキュメントはいくつかのカテゴリーに分類されて ... ocs/requirements.txt ドキュメントをローカルでビルドする docs ディレクトリから HTML 出力をビルドできます: / $ cd docs $ make html ...\> cd docs ...\> make.bat html ローカルにビルドされたドキュメントは _build/html/index.html にアクセスできるようにな ... ne of the following commands: On Linux and macOS: $ SPHINXBUILD = sphinx-autobuild SPHINXOPTS = "--open-browser --delay 0" make html On Windows (Command Prompt): ...\> set SPHINXBUILD = sphinx-autobuild ...\> set SPHINXOPTS = --open-browser --delay 0 ... ... her developers know that a particular bug or feature is being worked on. If you have identified a contribution you want to make and you're capable of fixing it (as measured by your coding ability, knowledge of Django internals and time availability), ... s should follow the process for suggesting new features . If a ticket for this issue already exists and has been accepted, make sure nobody else has claimed it. To do this, look at the "Owned by" section of the ticket. If it's assigned to "nobody," t ... r someone has claimed it or not, to link proposals to a ticket if you happen to have the changes ready. Contribution style Make sure that any contribution you do fulfills at least the following requirements: The code required to fix a problem or add ... ... とに重点を置いています。 Common changes This section describes the changes between 0.96 and 1.0 that most users will need to make. Use Unicode Change string literals ( 'foo' ) into Unicode literals ( u'foo' ). Django now uses Unicode strings throughout ... t with form fields): Replace __str__ with __unicode__ Replace your model's __str__ function with a __unicode__ method, and make sure you use Unicode ( u'foo' ) in that method. Remove prepopulated_from Remove the prepopulated_from argument on model fi ... generate a corresponding admin.py . カスタマイズ例 Below is an example models.py file with all the changes you'll need to make: Old (0.96) models.py : class Author ( models . Model ): first_name = models . CharField ( maxlength = 30 ) last_name = mo ... ... ことを認識できるように、 CFLAGS 環境変数をカスタマイズする必要があります: $ CFLAGS = "-DSQLITE_ENABLE_RTREE=1" ./configure $ make $ sudo make install $ cd .. SpatiaLite ライブラリ ( libspatialite ) download page から最新の SpatiaLite ライブラリのソース ... patialite-sources/libspatialite-X.Y.Z.tar.gz $ tar xaf libspatialite-X.Y.Z.tar.gz $ cd libspatialite-X.Y.Z $ ./configure $ make $ sudo make install 注釈 macOS ユーザーがソースからビルドする場合、SpatiaLite ライブラリとツールは target を設定する必要が ... ... may be more valuable for you to work on the issue at hand rather than investigating a weird machine configuration problem. Make a note of the failing tests before you start, so you can tell whether a later failure was caused by your changes. Build th ... e documentation: / $ cd docs && make html && cd .. ...\> cd docs && make.bat html && cd .. Finding a ticket to work on Finding a workable ticket is a challengi ... = between 5 years ago and today Modified = between 5 years ago and 6 months ago Claiming a ticket When you find a ticket, make yourself the owner by clicking the "Modify Ticket" button near the bottom of the page, selecting the "assign to" radio but ... ... GitHub pull request containing the changes for Trac ticket #xxxxx. By creating a fully-ready pull request, you will make the reviewer's job easier, meaning that your work is more likely to be merged into Django. You could also upload a traditi ... ou would do: git checkout -b ticket_xxxxx_1_4 upstream/stable/1.4.x Assume the work is carried on the ticket_xxxxx branch. Make some changes and commit them: git commit When writing the commit message, follow the commit message guidelines to ease the ... erger who will deal with your pull request has only two options: merge it or close it. For this reason, it isn't useful to make a pull request until the code is ready for merging -- or sufficiently close that a merger will finish it themselves. Editi ... ... for a ticket. Reviewers: anyone can review pull requests and suggest improvements. Mergers: people with commit access who make the final decision to merge a change. When we say anyone, we mean you! Our Trac system and GitHub repositories are intenti ... flow through during its lifetime. Unreviewed (未レビュー) The ticket has not been reviewed by anyone who felt qualified to make a judgment about whether the ticket contained a valid issue or ought to be closed for any reasons. Unreviewed tickets appe ... ンポーネント) Tickets should be classified into components indicating which area of the Django codebase they belong to. This makes tickets better organized and easier to find. Severity (重要度) The severity attribute is used to identify blockers, that ... 2026年10月08日