per page, with , order by , clip by
Results of 1 - 10 of about 82 for Place (0.004 sec.)
一対一 (one-to-one) 関係 — Django 6.1 ドキュメント 15257
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 一対一 (one-to-one) 関係 ¶ 一対一の関係を定義するには、 OneToOneField を使用します。 この例では、 Place は任意で Restaurant になることができます: fr ... om django.db import models class Place ( models . Model ): name = models . CharField ( max_length = 50 ) address = models . CharField ( max_length = 80 ) def __s ... tr__ ( self ): return f " { self . name } the place" class Restaurant ( models . Model ): place = models . OneToOneField ( Place , on_delete = models . CASCADE , primary_key ... alse ) serves_pizza = models . BooleanField ( default = False ) def __str__ ( self ): return " %s the restaurant" % self . place . name class Waiter ( models . Model ): restaurant = models . ForeignKey ( Restaurant , on_delete = models . CASCADE ) nam ...
https://man.mtool.work/django/6.1/topics/db/examples/one_to_one.html
一対一 (one-to-one) 関係 — Django 6.1 ドキュメント 15216
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 一対一 (one-to-one) 関係 ¶ 一対一の関係を定義するには、 OneToOneField を使用します。 この例では、 Place は任意で Restaurant になることができます: fr ... om django.db import models class Place ( models . Model ): name = models . CharField ( max_length = 50 ) address = models . CharField ( max_length = 80 ) def __s ... tr__ ( self ): return f " { self . name } the place" class Restaurant ( models . Model ): place = models . OneToOneField ( Place , on_delete = models . CASCADE , primary_key ... alse ) serves_pizza = models . BooleanField ( default = False ) def __str__ ( self ): return " %s the restaurant" % self . place . name class Waiter ( models . Model ): restaurant = models . ForeignKey ( Restaurant , on_delete = models . CASCADE ) nam ...
https://man.mtool.work/django/6.1/topics/db/examples/one_to_one.html
モデル — Django 6.1 ドキュメント 8132
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデル ¶ モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは ... CASCADE , verbose_name = "the related poll" , ) sites = models . ManyToManyField ( Site , verbose_name = "list of sites" ) place = models . OneToOneField ( Place , on_delete = models . CASCADE , verbose_name = "related place" , ) 慣習的に、 verbose_na ... 場所の上にレストランのデータベースを構築したい場合、 Restaurant モデルにこれらのフィールドを複製する代わりに、 Restaurant に Place に対する OneToOneField を持たせることができます (レストランは「場所」だからです。実際、これを扱うには、暗黙の一対一関係を含 ... の間にリンクが作られます。この継承を利用すると、たとえば、次のように書くことができます。 from django.db import models class Place ( models . Model ): name = models . CharField ( max_length = 50 ) address = models . CharField ( max_length = 80 ) class R ...
https://man.mtool.work/django/6.1/topics/db/models.html
モデル — Django 6.1 ドキュメント 8132
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデル ¶ モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは ... CASCADE , verbose_name = "the related poll" , ) sites = models . ManyToManyField ( Site , verbose_name = "list of sites" ) place = models . OneToOneField ( Place , on_delete = models . CASCADE , verbose_name = "related place" , ) 慣習的に、 verbose_na ... 場所の上にレストランのデータベースを構築したい場合、 Restaurant モデルにこれらのフィールドを複製する代わりに、 Restaurant に Place に対する OneToOneField を持たせることができます (レストランは「場所」だからです。実際、これを扱うには、暗黙の一対一関係を含 ... の間にリンクが作られます。この継承を利用すると、たとえば、次のように書くことができます。 from django.db import models class Place ( models . Model ): name = models . CharField ( max_length = 50 ) address = models . CharField ( max_length = 80 ) class R ...
https://man.mtool.work/django/6.1/topics/db/models.html
REMOTE_USER で認証する — Django 6.1 ドキュメント 6920
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » REMOTE_USER で認証する ¶ This document describes how to make use of external authentication sources in your Django applications. This type of authen ... TH_USER key in request.META , you must also check that your web server doesn't allow a spoofed header using underscores in place of dashes. Under WSGI, this warning doesn't apply to RemoteUserMiddleware in its default configuration with header = "REMO ... ader. This warning applies under ASGI in all configurations, because there is no equivalent for a WSGI server's ability to place a trusted value in the environ. ASGI deployments must use a reverse proxy as described above when using this middleware. 認 ...
https://man.mtool.work/django/6.1/howto/auth-remote-user.html
Django へのコントリビュート — Django 6.1 ドキュメント 6920
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django へのコントリビュート ¶ Django はボランティアで成り立っているコミュニティです。Django が成長し続けるにつれて、私たちは常に他の人を助けるために ... can help the Django community and others to maintain a great ecosystem to work in: Join the Django Forum . This forum is a place for discussing the Django framework and applications and projects that use it. This is also a good place to ask and answer ...
https://man.mtool.work/django/6.1/internals/contributing/
REMOTE_USER で認証する — Django 6.1 ドキュメント 6920
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » REMOTE_USER で認証する ¶ This document describes how to make use of external authentication sources in your Django applications. This type of authen ... TH_USER key in request.META , you must also check that your web server doesn't allow a spoofed header using underscores in place of dashes. Under WSGI, this warning doesn't apply to RemoteUserMiddleware in its default configuration with header = "REMO ... ader. This warning applies under ASGI in all configurations, because there is no equivalent for a WSGI server's ability to place a trusted value in the environ. ASGI deployments must use a reverse proxy as described above when using this middleware. 認 ...
https://man.mtool.work/django/6.1/howto/auth-remote-user.html
Django へのコントリビュート — Django 6.1 ドキュメント 6920
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django へのコントリビュート ¶ Django はボランティアで成り立っているコミュニティです。Django が成長し続けるにつれて、私たちは常に他の人を助けるために ... can help the Django community and others to maintain a great ecosystem to work in: Join the Django Forum . This forum is a place for discussing the Django framework and applications and projects that use it. This is also a good place to ask and answer ...
https://man.mtool.work/django/6.1/internals/contributing/
Django オブジェクトのシリアライズ — Django 6.1 ドキュメント 6824
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django オブジェクトのシリアライズ ¶ Django のシリアライズフレームワークは、Django のモデルを他のフォーマットに「翻訳」する仕組みを提供します。通常、 ... ル上でローカルに定義されたフィールドだけがシリアライズされるためです。たとえば、次のようなモデルを考えてみてください。 class Place ( models . Model ): name = models . CharField ( max_length = 50 ) class Restaurant ( Place ): serves_hot_dogs = models . B ... s 属性だけが含まれます。ベースクラスの name 属性は無視されます。 Restaurant インスタンスを完全にシリアライズするためには、 Place モデルも同様にシリアライズする必要があります。 all_objects = [ * Restaurant . objects . all (), * Place . objects . all () ...
https://man.mtool.work/django/6.1/topics/serialization.html
Django オブジェクトのシリアライズ — Django 6.1 ドキュメント 6824
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django オブジェクトのシリアライズ ¶ Django のシリアライズフレームワークは、Django のモデルを他のフォーマットに「翻訳」する仕組みを提供します。通常、 ... ル上でローカルに定義されたフィールドだけがシリアライズされるためです。たとえば、次のようなモデルを考えてみてください。 class Place ( models . Model ): name = models . CharField ( max_length = 50 ) class Restaurant ( Place ): serves_hot_dogs = models . B ... s 属性だけが含まれます。ベースクラスの name 属性は無視されます。 Restaurant インスタンスを完全にシリアライズするためには、 Place モデルも同様にシリアライズする必要があります。 all_objects = [ * Restaurant . objects . all (), * Place . objects . all () ...
https://man.mtool.work/django/6.1/topics/serialization.html
PREV 1 2 3 4 5 6 7 8 9 NEXT