... 相当する SQL を示しています。同じパターンがすべての空間ルックアップに適用されます。 ケース ルックアップ 等価なSQL N, B rast__contains=rst ST_Contains(rast, rst) N, B rast__1__contains=(rst, 2) ST_Contains(rast, 1, rst, 2) B, C rast__contains=geom ST_Contai ... ns(ST_Polygon(rast), geom) B, C rast__1__contains=geom ST_Contains(ST_Polygon(rast, 1), geom) B, C poly__contains=rst ST_Contains(poly, ST_Polygon(rst)) B, C poly__contains ... =(rst, 1) ST_Contains(poly, ST_Polygon(rst, 1)) C rast__crosses=rst ST_Crosses(ST_Polygon(rast), ST_Polygon(rst)) C rast__1__crosses=(rst, 2) ST ... ... 相当する SQL を示しています。同じパターンがすべての空間ルックアップに適用されます。 ケース ルックアップ 等価なSQL N, B rast__contains=rst ST_Contains(rast, rst) N, B rast__1__contains=(rst, 2) ST_Contains(rast, 1, rst, 2) B, C rast__contains=geom ST_Contai ... ns(ST_Polygon(rast), geom) B, C rast__1__contains=geom ST_Contains(ST_Polygon(rast, 1), geom) B, C poly__contains=rst ST_Contains(poly, ST_Polygon(rst)) B, C poly__contains ... =(rst, 1) ST_Contains(poly, ST_Polygon(rst, 1)) C rast__crosses=rst ST_Crosses(ST_Polygon(rast), ST_Polygon(rst)) C rast__1__crosses=(rst, 2) ST ... ... 200 ) tags = ArrayField ( models . CharField ( max_length = 200 ), blank = True ) def __str__ ( self ): return self . name contains ¶ ArrayField 上で contains ルックアップはオーバーライドされます。返されるオブジェクトは、渡された値がデータの部分集合である ... >>> Post . objects . create ( name = "Third post" , tags = [ "tutorial" , "django" ]) >>> Post . objects . filter ( tags__contains = [ "thoughts" ]) <QuerySet [<Post: First post>, <Post: Second post>]> >>> Post . objects . filter ( tags__contains = [ "d ... jango" ]) <QuerySet [<Post: First post>, <Post: Third post>]> >>> Post . objects . filter ( tags__contains = [ "django" , "thoughts" ]) <QuerySet [<Post: First post>]> contained_by ¶ これは contains ルックアップの逆です。返される ... ... 200 ) tags = ArrayField ( models . CharField ( max_length = 200 ), blank = True ) def __str__ ( self ): return self . name contains ¶ ArrayField 上で contains ルックアップはオーバーライドされます。返されるオブジェクトは、渡された値がデータの部分集合である ... >>> Post . objects . create ( name = "Third post" , tags = [ "tutorial" , "django" ]) >>> Post . objects . filter ( tags__contains = [ "thoughts" ]) <QuerySet [<Post: First post>, <Post: Second post>]> >>> Post . objects . filter ( tags__contains = [ "d ... jango" ]) <QuerySet [<Post: First post>, <Post: Third post>]> >>> Post . objects . filter ( tags__contains = [ "django" , "thoughts" ]) <QuerySet [<Post: First post>]> contained_by ¶ これは contains ルックアップの逆です。返される ... ... e template for the technical 500 debug page ( #30324 ). Fixed crash of ordering argument in ArrayAgg and StringAgg when it contains an expression with params ( #30332 ). Fixed a regression in Django 2.2 that caused a single instance fast-delete to not se ... 0 ). Prevented makemigrations from generating infinite migrations for check constraints and partial indexes when condition contains a range object ( #30350 ). Reverted an optimization in Django 2.2 ( #29725 ) that caused the inconsistent behavior of coun ... when using StatReloader ( #30323 ). Fixed a migration crash on Oracle and PostgreSQL when adding a check constraint with a contains , startswith , or endswith lookup (or their case-insensitive variant) ( #30408 ). Fixed a migration crash on Oracle and SQ ... ... (<field>__<lookup_type>=<parameter>) >>> qs = Zipcode.objects.exclude(...) 例: >>> qs = Zipcode . objects . filter ( poly__contains = pnt ) >>> qs = Elevation . objects . filter ( poly__contains = rst ) この場合、 poly は地理情報フィールド、 contains は空 ... tion.objects.filter(<field>__<lookup_type>=(<raster_input, <band_index>) 例: >>> qs = Elevation . objects . filter ( rast__contains = geom ) >>> qs = Elevation . objects . filter ( rast__contains = rst ) >>> qs = Elevation . objects . filter ( rast__1__c ... ontains = geom ) >>> qs = Elevation . objects . filter ( rast__contains = ( rst , 1 )) >>> qs = Elevation . objects . filter ( rast__1__contains = ( rst , 1 )) 例の左辺では、 rast が地理情報ラス ... ... (<field>__<lookup_type>=<parameter>) >>> qs = Zipcode.objects.exclude(...) 例: >>> qs = Zipcode . objects . filter ( poly__contains = pnt ) >>> qs = Elevation . objects . filter ( poly__contains = rst ) この場合、 poly は地理情報フィールド、 contains は空 ... tion.objects.filter(<field>__<lookup_type>=(<raster_input, <band_index>) 例: >>> qs = Elevation . objects . filter ( rast__contains = geom ) >>> qs = Elevation . objects . filter ( rast__contains = rst ) >>> qs = Elevation . objects . filter ( rast__1__c ... ontains = geom ) >>> qs = Elevation . objects . filter ( rast__contains = ( rst , 1 )) >>> qs = Elevation . objects . filter ( rast__1__contains = ( rst , 1 )) 例の左辺では、 rast が地理情報ラス ... ... e template for the technical 500 debug page ( #30324 ). Fixed crash of ordering argument in ArrayAgg and StringAgg when it contains an expression with params ( #30332 ). Fixed a regression in Django 2.2 that caused a single instance fast-delete to not se ... 0 ). Prevented makemigrations from generating infinite migrations for check constraints and partial indexes when condition contains a range object ( #30350 ). Reverted an optimization in Django 2.2 ( #29725 ) that caused the inconsistent behavior of coun ... when using StatReloader ( #30323 ). Fixed a migration crash on Oracle and PostgreSQL when adding a check constraint with a contains , startswith , or endswith lookup (or their case-insensitive variant) ( #30408 ). Fixed a migration crash on Oracle and SQ ... ... ment. Tutorials ¶ The Django tutorial contains a whole section that walks you step-by-step through the contributing code process. Djangoにはじめて貢献する How-to ガイド ... ¶ If you already have some familiarity with the processes and principles, our documentation also contains useful guidance on specific topics: How to submit a patch to Django for new and/or fixed behavior How to write and run tes ... print quickstart guide 次のトピックへ Submitting contributions 関連キーワード Django code How to tests write documentation contains topics run work we easy pickings Contributing like improve There several ways help クイック検索 Last update: 2026年10月08日 ... ... __startswith = "What" ) >>> q = q . filter ( pub_date__lte = datetime . date . today ()) >>> q = q . exclude ( body_text__icontains = "food" ) >>> print ( q ) この例ではデータベースに3回アクセスしているように見えますが、実際にアクセスしているのは、最終行 ... beatles blog" ) は "Beatles Blog" 、 "beatles blog" 、あるいは "BeAtlES blOG" というタイトルを持つ Blog にもマッチします。 contains case-sensitive な部分一致テストを行います。たとえば、 Entry . objects . get ( headline__contains = "Lennon" ) はだいたい次 ... n honored' にはマッチしても 'today lennon honored' にはマッチしないことに注意してください。 case-insensitive バージョンの icontains もあります。 startswith と endswith それぞれ starts-with と ends-with 検索を行います。case-insensitive バージョン istartsw ... 2026年10月08日