per page, with , order by , clip by
Results of 1 - 10 of about 60 for startswith (0.007 sec.)
多対一 (many-to-one) 関係 — Django 6.1 ドキュメント 12695
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 多対一 (many-to-one) 関係 ¶ 多対一のリレーションシップを定義するには ForeignKey を使います。 この例では、 Reporter は複数の Article オブジェクトと関 ... コアを使用してください。これは、好きなだけ深くできます。制限はありません。たとえば: >>> r . article_set . filter ( headline__startswith = "This" ) <QuerySet [<Article: This is a test>]> # Find all Articles for any Reporter whose first name is "John". >>> Art ... objects . filter ( article = a ) <QuerySet [<Reporter: John Smith>]> >>> Reporter . objects . filter ( article__headline__startswith = "This" ) <QuerySet [<Reporter: John Smith>, <Reporter: John Smith>, <Reporter: John Smith>]> >>> Reporter . objects . fi ... lter ( article__headline__startswith = "This" ) . distinct () <QuerySet [<Reporter: John Smith>]> 逆方向のカウントは distinct() と連動して動作します: >>> Repor ...
https://man.mtool.work/django/6.1/topics/db/examples/many_to_one.html
多対一 (many-to-one) 関係 — Django 6.1 ドキュメント 11953
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 多対一 (many-to-one) 関係 ¶ 多対一のリレーションシップを定義するには ForeignKey を使います。 この例では、 Reporter は複数の Article オブジェクトと関 ... コアを使用してください。これは、好きなだけ深くできます。制限はありません。たとえば: >>> r . article_set . filter ( headline__startswith = "This" ) <QuerySet [<Article: This is a test>]> # Find all Articles for any Reporter whose first name is "John". >>> Art ... objects . filter ( article = a ) <QuerySet [<Reporter: John Smith>]> >>> Reporter . objects . filter ( article__headline__startswith = "This" ) <QuerySet [<Reporter: John Smith>, <Reporter: John Smith>, <Reporter: John Smith>]> >>> Reporter . objects . fi ... lter ( article__headline__startswith = "This" ) . distinct () <QuerySet [<Reporter: John Smith>]> 逆方向のカウントは distinct() と連動して動作します: >>> Repor ...
https://man.mtool.work/django/6.1/topics/db/examples/many_to_one.html
多対多 (many-to-many) 関係 — Django 6.1 ドキュメント 11662
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 多対多 (many-to-many) 関係 ¶ 多対多の関係を定義するには、 ManyToManyField を使用します。 この例では、一つの Article は複数の Publication オブジェクト ... jango lets you build web apps easily>, <Article: NASA uses Python>]> >>> Article . objects . filter ( publications__title__startswith = "Science" ) <QuerySet [<Article: NASA uses Python>, <Article: NASA uses Python>]> >>> Article . objects . filter ( publi ... cations__title__startswith = "Science" ) . distinct () <QuerySet [<Article: NASA uses Python>]> count() 関数は distinct() も尊重します: >>> Article . ... objects . filter ( publications__title__startswith = "Science" ) . count () 2 >>> Article . objects . filter ( publications__title__startswith = "Science" ) . distinct () . ...
https://man.mtool.work/django/6.1/topics/db/examples/many_to_many.html
多対多 (many-to-many) 関係 — Django 6.1 ドキュメント 10935
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 多対多 (many-to-many) 関係 ¶ 多対多の関係を定義するには、 ManyToManyField を使用します。 この例では、一つの Article は複数の Publication オブジェクト ... jango lets you build web apps easily>, <Article: NASA uses Python>]> >>> Article . objects . filter ( publications__title__startswith = "Science" ) <QuerySet [<Article: NASA uses Python>, <Article: NASA uses Python>]> >>> Article . objects . filter ( publi ... cations__title__startswith = "Science" ) . distinct () <QuerySet [<Article: NASA uses Python>]> count() 関数は distinct() も尊重します: >>> Article . ... objects . filter ( publications__title__startswith = "Science" ) . count () 2 >>> Article . objects . filter ( publications__title__startswith = "Science" ) . distinct () . ...
https://man.mtool.work/django/6.1/topics/db/examples/many_to_many.html
クエリを作成する — Django 6.1 ドキュメント 9743
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クエリを作成する ¶ 一度 データモデル を作成すれば、Django はデータオブジェクトの作成、取得、更新および削除を行えるようにデータベースを抽象化した API ... 、複数のフィルタを連結することが可能です。たとえば、次のように書くことができます。 >>> Entry . objects . filter ( headline__startswith = "What" ) . exclude ( ... pub_date__gte = datetime . date . today () ... ) . filter ( pub_date__gte = datetime . date ( 2 ... に独立した QuerySet が作られるため、保存したり何度も再利用したりできます。 例: >>> q1 = Entry . objects . filter ( headline__startswith = "What" ) >>> q2 = q1 . exclude ( pub_date__gte = datetime . date . today ()) >>> q3 = q1 . filter ( pub_date__gte = date ... 価される までは、Django は実際にはクエリを実行しません。次の例を見てください。 >>> q = Entry . objects . filter ( headline__startswith = "What" ) >>> q = q . filter ( pub_date__lte = datetime . date . today ()) >>> q = q . exclude ( body_text__icontains = " ...
https://man.mtool.work/django/6.1/topics/db/queries.html
クエリを作成する — Django 6.1 ドキュメント 9743
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » クエリを作成する ¶ 一度 データモデル を作成すれば、Django はデータオブジェクトの作成、取得、更新および削除を行えるようにデータベースを抽象化した API ... 、複数のフィルタを連結することが可能です。たとえば、次のように書くことができます。 >>> Entry . objects . filter ( headline__startswith = "What" ) . exclude ( ... pub_date__gte = datetime . date . today () ... ) . filter ( pub_date__gte = datetime . date ( 2 ... に独立した QuerySet が作られるため、保存したり何度も再利用したりできます。 例: >>> q1 = Entry . objects . filter ( headline__startswith = "What" ) >>> q2 = q1 . exclude ( pub_date__gte = datetime . date . today ()) >>> q3 = q1 . filter ( pub_date__gte = date ... 価される までは、Django は実際にはクエリを実行しません。次の例を見てください。 >>> q = Entry . objects . filter ( headline__startswith = "What" ) >>> q = q . filter ( pub_date__lte = datetime . date . today ()) >>> q = q . exclude ( body_text__icontains = " ...
https://man.mtool.work/django/6.1/topics/db/queries.html
一対一 (one-to-one) 関係 — Django 6.1 ドキュメント 8725
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 一対一 (one-to-one) 関係 ¶ 一対一の関係を定義するには、 OneToOneField を使用します。 この例では、 Place は任意で Restaurant になることができます: fr ... . objects . get ( place__pk = 1 ) <Restaurant: Demon Dogs the restaurant> >>> Restaurant . objects . filter ( place__name__startswith = "Demon" ) <QuerySet [<Restaurant: Demon Dogs the restaurant>]> >>> Restaurant . objects . exclude ( place__address__cont ... lace . objects . get ( restaurant = r ) <Place: Demon Dogs the place> >>> Place . objects . get ( restaurant__place__name__startswith = "Demon" ) <Place: Demon Dogs the place> 場所を削除した場合、そのレストランは削除されます ( OneToOneField が on_delete に ... QuerySet [<Waiter: Joe the waiter at Demon Dogs the restaurant>]> >>> Waiter . objects . filter ( restaurant__place__name__startswith = "Demon" ) <QuerySet [<Waiter: Joe the waiter at Demon Dogs the restaurant>]> 前のトピックへ 多対一 (many-to-one) 関係 次 ...
https://man.mtool.work/django/6.1/topics/db/examples/one_to_one.html
一対一 (one-to-one) 関係 — Django 6.1 ドキュメント 8725
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 一対一 (one-to-one) 関係 ¶ 一対一の関係を定義するには、 OneToOneField を使用します。 この例では、 Place は任意で Restaurant になることができます: fr ... . objects . get ( place__pk = 1 ) <Restaurant: Demon Dogs the restaurant> >>> Restaurant . objects . filter ( place__name__startswith = "Demon" ) <QuerySet [<Restaurant: Demon Dogs the restaurant>]> >>> Restaurant . objects . exclude ( place__address__cont ... lace . objects . get ( restaurant = r ) <Place: Demon Dogs the place> >>> Place . objects . get ( restaurant__place__name__startswith = "Demon" ) <Place: Demon Dogs the place> 場所を削除した場合、そのレストランは削除されます ( OneToOneField が on_delete に ... QuerySet [<Waiter: Joe the waiter at Demon Dogs the restaurant>]> >>> Waiter . objects . filter ( restaurant__place__name__startswith = "Demon" ) <QuerySet [<Waiter: Joe the waiter at Demon Dogs the restaurant>]> 前のトピックへ 多対一 (many-to-one) 関係 次 ...
https://man.mtool.work/django/6.1/topics/db/examples/one_to_one.html
Django 1.10 リリースノート — Django 6.1 ドキュメント 8419
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.10 リリースノート ¶ 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレ ... jango.contrib.auth import get_user_model User = get_user_model () # Unsalted MD5/SHA1: User . objects . filter ( password__startswith = "md5$$" ) User . objects . filter ( password__startswith = "sha1$$" ) # Salted MD5/SHA1: User . objects . filter ( passw ... ord__startswith = "md5$" ) . exclude ( password__startswith = "md5$$" ) User . objects . filter ( password__startswith = "sha1$" ) . exclu ... de ( password__startswith = "sha1$$" ) # Crypt hasher: User . objects . filter ( password__startswith = "crypt$$" ) from django.db.models import Cha ...
https://man.mtool.work/django/6.1/releases/1.10.html
Django 1.10 リリースノート — Django 6.1 ドキュメント 8419
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.10 リリースノート ¶ 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレ ... jango.contrib.auth import get_user_model User = get_user_model () # Unsalted MD5/SHA1: User . objects . filter ( password__startswith = "md5$$" ) User . objects . filter ( password__startswith = "sha1$$" ) # Salted MD5/SHA1: User . objects . filter ( passw ... ord__startswith = "md5$" ) . exclude ( password__startswith = "md5$$" ) User . objects . filter ( password__startswith = "sha1$" ) . exclu ... de ( password__startswith = "sha1$$" ) # Crypt hasher: User . objects . filter ( password__startswith = "crypt$$" ) from django.db.models import Cha ...
https://man.mtool.work/django/6.1/releases/1.10.html
PREV 1 2 3 4 5 6 NEXT