per page, with , order by , clip by
Results of 1 - 10 of about 94 for make (0.004 sec.)
管理アクション 13647
管理アクション Djangoの管理者の基本的な仕事は、一言で言えば、「オブジェクトを選択し、それを変更する」ことに尽きます。これは大多数のユースケースに当てはまります。しかし、一度に多くのオブジェクトに同じ変更を適用する必要がある場合、この仕事は退 ... 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" ) 注釈 これには見覚えがあるかもしれません。 ...
https://man.mtool.work/django/6.1/ref/contrib/admin/actions.html
Djangoにはじめて貢献する 11865
Djangoにはじめて貢献する はじめに コミュニティに少し貢献してみませんか? たとえばあなたは、Django のバグを見つけて修正してほしいと思っていたり、ちょっとした機能を追加したいと考えているかもしれません(ただし、新機能の提案は 新機能の提案方法 に ... みます。以下はその架空の詳細です。 チケット #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 ...
https://man.mtool.work/django/6.1/intro/contributing.html
How to release Django 11496
How to release Django このドキュメントでは、Django のリリース方法について説明しています。 これらの手順を変更した場合は、最新の情報を保ってください! ここでのポイントは、規定を設けるのではなく、説明的であることです。自由に効率化したり、変更し ... が、 このドキュメントをそれに応じて更新してください! オーバービュー 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 ...
https://man.mtool.work/django/6.1/internals/howto-release-django.html
ドキュメントを書く 10651
ドキュメントを書く 私たちはドキュメントの一貫性と読みやすさを重要視しています。結局のところ、Django はジャーナリズムの環境で作られました!ですから、私たちはコードを扱うようにドキュメントを扱います。できるだけ頻繁に改善することを目指しています ... 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 ...
https://man.mtool.work/django/6.1/internals/contributing/writing-documentation.h...
Submitting contributions 8579
Submitting contributions We're always grateful for contributions to Django's code. Indeed, bug reports with associated contributions will get fixed far more quickly than those without a solution. Typo fixes and trivial documentation changes ... 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 ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/submitting...
Porting your apps from Django 0.96 to 1.0 8486
Porting your apps from Django 0.96 to 1.0 Django 1.0 breaks compatibility with 0.96 in some areas. This guide will help you port 0.96 projects and apps to 1.0. The first part of this document includes the common changes needed to run with 1 ... とに重点を置いています。 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 ...
https://man.mtool.work/django/6.1/releases/1.0-porting-guide.html
SpatiaLite のインストール 8209
SpatiaLite のインストール SpatiaLite はSQLiteに空間データのサポートを追加し、それを完全な機能を持つ空間データベースに変えます。 まず、システムパッケージやバイナリから SpatiaLiteを インストールできるかどうかを確認してください。 例えば、Spati ... ことを認識できるように、 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 を設定する必要が ...
https://man.mtool.work/django/6.1/ref/contrib/gis/install/spatialite.html
Sprint quickstart guide 7932
Sprint quickstart guide This document explains how to prepare to contribute to Django. It is intended for use during sprints, or by people who are already familiar with contributing to Python open source projects. This guide assumes you're ... 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 ...
https://man.mtool.work/django/6.1/internals/contributing/sprint-quickstart.html
Working with Git and GitHub 7932
Working with Git and GitHub This section explains how the community can contribute code to Django via pull requests. If you're interested in how mergers handle them, see プルリクエストの取り扱い . Below, we are going to show how to create a ... 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 ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/working-wi...
チケットをトリアージする 7734
チケットをトリアージする Django uses Trac for managing the work on the code base. Trac is a community-tended garden of the bugs people have found and the features Django has decided to add. As in any garden, sometimes there are weeds to be ... 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 ...
https://man.mtool.work/django/6.1/internals/contributing/triaging-tickets.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT