per page, with , order by , clip by
Results of 1 - 10 of about 19 for members (0.005 sec.)
データベースアクセスの最適化 15504
データベースアクセスの最適化 Djangoのデータベース層は、開発者がデータベースを最大限活用できるように、さまざまな方法を提供しています。このドキュメントでは、データベースアクセスを最適化する際にとるべき手順を、大まかにいくつかの見出しとしてまと ... になったときは、すぐに評価を行います。 例えば、 User と多対多の関連をもつ Group モデルを考えたとき、以下のコードが最適です: members = group . members . all () if display_group_members : if members : if current_user in members : print ( "You and" , len ( ... members ) - 1 , "other users are members of this group." ) else : print ( "There are" , len ( members ), "members in this group." ) for member in members : print ( ... member . username ) else : print ( "There are no members in this group." ) 最適である理由: クエリセットは遅延評価されるので、 display_group_members が False の場合、データベースク ...
https://man.mtool.work/django/6.1/topics/db/optimization.html
モデル 9408
モデル モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは単一のデータベースのテーブルに対応付けられます。 基本: モデルは各々 Python のクラスであり dja ... ) def __str__ ( self ): return self . name class Group ( models . Model ): name = models . CharField ( max_length = 128 ) members = models . ManyToManyField ( Person , through = "Membership" ) def __str__ ( self ): return self . name class Membership ( ... ず指定する必要があります。指定しない場合はバリデーションエラーが発生します。 これで ManyToManyField が中間モデル (この場合は Membership ) を使うように設定できたので、多対多のリレーションシップを作成する準備ができました。これを行うには、中間モデルのインスタ ... on . objects . create ( name = "Paul McCartney" ) >>> beatles = Group . objects . create ( name = "The Beatles" ) >>> m1 = Membership ( ... person = ringo , ... group = beatles , ... date_joined = date ( 1962 , 8 , 16 ), ... invite_reason = "Needed a ne ...
https://man.mtool.work/django/6.1/topics/db/models.html
Django 1.2 リリースノート 8930
Django 1.2 リリースノート 2010 年 5 月 17 日 Django 1.2 へようこそ! Nearly a year in the making, Django 1.2 packs an impressive list of new features and lots of bug fixes. These release notes cover the new features, as well as important cha ... r, it handled introspection in a non-standard way, depending on wrapped objects implementing a public method named get_all_members() . Since this could easily lead to name clashes, it has been changed to use the standard Python introspection method, inv ... olving __members__ and __dir__() . If you used LazyObject in your own code and implemented the get_all_members() method for wrapped objects ... r__() or other methods that allow for attributes not discoverable by normal mechanisms), you can simply remove the get_all_members() method. The default implementation on LazyObject will do the right thing. If you have more complex requirements for intr ...
https://man.mtool.work/django/6.1/releases/1.2.html
Django 2.2.24 リリースノート 8640
Django 2.2.24 リリースノート June 2, 2021 Django 2.2.24 fixes two security issues in 2.2.23. CVE-2021-33203: Potential directory traversal via admindocs Staff members could use the admindocs TemplateDetailView view to check the existence of ...
https://man.mtool.work/django/6.1/releases/2.2.24.html
Django 3.1.12 リリースノート 8640
Django 3.1.12 リリースノート June 2, 2021 Django 3.1.12 fixes two security issues in 3.1.11. CVE-2021-33203: Potential directory traversal via admindocs Staff members could use the admindocs TemplateDetailView view to check the existence of ...
https://man.mtool.work/django/6.1/releases/3.1.12.html
Django 3.2.4 リリースノート 8349
Django 3.2.4 リリースノート June 2, 2021 Django 3.2.4 では、セキュリティの問題2件と、 3.2.3 におけるいくつかのバグを修正しました。 CVE-2021-33203: Potential directory traversal via admindocs Staff members could use the admindocs TemplateDet ...
https://man.mtool.work/django/6.1/releases/3.2.4.html
Django 1.1.4 リリースノート 8264
Django 1.1.4 リリースノート Django 1.1.4 へようこそ! This is the fourth "bugfix" release in the Django 1.1 series, improving the stability and performance of the Django 1.1 codebase. With one exception, Django 1.1.4 maintains backwards comp ... f the X-Requested-With header. The Ruby on Rails web framework had a similar exemption. Recently, engineers at Google made members of the Ruby on Rails development team aware of a combination of browser plugins and redirects which can allow an attacker ...
https://man.mtool.work/django/6.1/releases/1.1.4.html
Django プロジェクトの組織 8059
Django プロジェクトの組織 原則 Django プロジェクトは、3 つの目標を追求するボランティアチームによって管理されています。 Django ウェブフレームワークの開発を推進すること、 Django 関連ソフトウェアのエコシステムを育成すること、 Django コミュニテ ... 各リリースサイクルの後に、新しい委員会が選出されます。選挙プロセスは以下の通りです: The steering council directs one of its members to notify the Secretary of the Django Software Foundation, in writing, of the triggering of the election, and the conditio ... n and its timeline. 選挙が発表されるとすぐに、DSF理事会 DSF Board は有権者登録の期間を開始します。DSFの個人会員 individual members of the DSF は自動的に登録されますので、特に登録する必要はありません。それ以外のすべての人で、選挙権を有すると思われるが、ま ...
https://man.mtool.work/django/6.1/internals/organization.html
Django の admin サイト 8059
Django の admin サイト Django のパワフルな特徴の1つは、自動的に生成される admin インタフェースです。あなたのモデルクラスからメタデータを読み取り、モデル中心のインタフェースを提供します。このインタフェースのおかげで、ユーザはあなたのサイトの ... e = models . CharField ( max_length = 128 ) class Group ( models . Model ): name = models . CharField ( max_length = 128 ) members = models . ManyToManyField ( Person , related_name = "groups" ) インラインを使用して多対多のリレーションを表示したい場合、 ... ModelAdmin オブジェクトを定義することで表示できます: from django.contrib import admin from myapp.models import Group class MembershipInline ( admin . TabularInline ): model = Group . members . through class GroupAdmin ( admin . ModelAdmin ): inlines = [ ... MembershipInline , ] exclude = [ "members" ] admin . site . register ( Group , GroupAdmin ) この例で注目すべき点は2つです。 まず、 ...
https://man.mtool.work/django/6.1/ref/contrib/admin/
Django 1.2.5 リリースノート 8059
Django 1.2.5 リリースノート Django 1.2.5 へようこそ! This is the fifth "bugfix" release in the Django 1.2 series, improving the stability and performance of the Django 1.2 codebase. With four exceptions, Django 1.2.5 maintains backwards com ... f the X-Requested-With header. The Ruby on Rails web framework had a similar exemption. Recently, engineers at Google made members of the Ruby on Rails development team aware of a combination of browser plugins and redirects which can allow an attacker ...
https://man.mtool.work/django/6.1/releases/1.2.5.html
PREV 1 2 NEXT