Results of 1 - 10 of about 185 for objects (0.014 sec.)
- QuerySet API リファレンス — Django 4.0.6 ドキュメント 9935
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ッドラインを出力するプログラムです: for e in Entry . objects . all (): print ( e . headline ) メモ: 単に1つ以上 ...
を矯正します。たとえば: entry_list = list ( Entry . objects . all ()) bool(). Testing a QuerySet in a boolean ...
s True , otherwise False . For example: if Entry . objects . filter ( headline = "Test" ): print ( "There is ...
least one result exists (and don't need the actual objects), it's more efficient to use exists() . Pickling Q ...
-
https://man.plustar.jp/django/ref/models/querysets.html
- [similar]
- PostgreSQL specific model fields — Django 4.0.6 ドキュメント 9495
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
lookup is overridden on ArrayField . The returned objects will be those where the values passed are a subset ...
uses the SQL operator @> . For example: >>> Post . objects . create ( name = 'First post' , tags = [ 'thought ...
s' , 'django' ]) >>> Post . objects . create ( name = 'Second post' , tags = [ 'though ...
ts' ]) >>> Post . objects . create ( name = 'Third post' , tags = [ 'tutoria ...
-
https://man.plustar.jp/django/ref/contrib/postgres/fields.html
- [similar]
- クエリを作成する — Django 4.0.6 ドキュメント 9352
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
log.models import Blog , Entry >>> entry = Entry . objects . get ( pk = 1 ) >>> cheese_blog = Blog . objects ...
from blog.models import Author >>> joe = Author . objects . create ( name = "Joe" ) >>> entry . authors . ad ...
の引数を次の例のように含めます: >>> john = Author . objects . create ( name = "John" ) >>> paul = Author . obj ...
s . create ( name = "Paul" ) >>> george = Author . objects . create ( name = "George" ) >>> ringo = Author . ...
-
https://man.plustar.jp/django/topics/db/queries.html
- [similar]
- Database Functions — Django 4.0.6 ドキュメント 9330
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
jango.db.models.functions import Cast >>> Author . objects . create ( age = 25 , name = 'Margaret Smith' ) >> ...
> author = Author . objects . annotate ( ... age_as_float = Cast ( 'age' , out ...
o.db.models.functions import Coalesce >>> Author . objects . create ( name = 'Margaret Smith' , goes_by = 'Ma ...
ggie' ) >>> author = Author . objects . annotate ( ... screen_name = Coalesce ( 'alias' ...
-
https://man.plustar.jp/django/ref/models/database-functions.html
- [similar]
- 多対多 (many-to-many) 関係 — Django 4.0.6 ドキュメント 8527
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
n Article can be published in multiple Publication objects, and a Publication has multiple Article objects: f ...
eate ( title = 'Highlights for Children' ) Article objects have access to their related Publication objects: ...
>, <Publication: The Python Journal>]> Publication objects have access to their related Article objects: >>> ...
>, <Article: NASA uses Python>]> >>> Publication . objects . get ( id = 4 ) . article_set . all () <QuerySet ...
-
https://man.plustar.jp/django/topics/db/examples/many_to_many.html
- [similar]
- 多対一 (many-to-one) 関係 — Django 4.0.6 ドキュメント 8395
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
mith' , email = 'john@example.com' ) >>> Article . objects . create ( headline = "This is a test" , pub_date ...
due to unsaved related object 'reporter'. Article objects have access to their related Reporter objects: >>> ...
Create a new article: >>> new_article2 = Article . objects . create ( headline = "Paul's story" , pub_date = ...
Reporter whose first name is "John". >>> Article . objects . filter ( reporter__first_name = 'John' ) <QueryS ...
-
https://man.plustar.jp/django/topics/db/examples/many_to_one.html
- [similar]
- GIS QuerySet API リファレンス — Django 4.0.6 ドキュメント 8230
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
lookup geometry's bounding box. 実装例: Zipcode . objects . filter ( poly__bbcontains = geom ) Backend SQL E ...
lookup geometry's bounding box. 実装例: Zipcode . objects . filter ( poly__bboverlaps = geom ) Backend SQL E ...
lookup geometry's bounding box. 実装例: Zipcode . objects . filter ( poly__contained = geom ) Backend SQL Eq ...
ly contains the lookup geometry. 実装例: Zipcode . objects . filter ( poly__contains = geom ) Backend SQL Equ ...
-
https://man.plustar.jp/django/ref/contrib/gis/geoquerysets.html
- [similar]
- Django オブジェクトのシリアル化 — Django 4.0.6 ドキュメント 8230
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ta = serializers . serialize ( "xml" , SomeModel . objects . all ()) The arguments to the serialize function ...
as out : xml_serializer . serialize ( SomeModel . objects . all (), stream = out ) 注釈 Calling get_serializ ...
ta = serializers . serialize ( 'xml' , SomeModel . objects . all (), fields = ( 'name' , 'size' )) In this ex ...
that model. Call the serializer on the object (or objects) that you want to serialize, and the output will b ...
-
https://man.plustar.jp/django/topics/serialization.html
- [similar]
- マネージャ — Django 4.0.6 ドキュメント 8208
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ます。 マネージャの名前 ¶ デフォルトでは、Django は objects という名前の Manager を各 Django モデルクラスに対し ...
て追加します。しかし、もし objects をフィールド名として使いたい場合や、あるいは、 Man ...
ager に対して objects 以外の名前を使いたい場合には、各モデル単位で好きな ...
models . Manager () このモデル例を使うと、 Person.objects は AttributeError 例外を起こしますが、 Person.peop ...
-
https://man.plustar.jp/django/topics/db/managers.html
- [similar]
- GEOS API — Django 4.0.6 ドキュメント 8175
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ly-coupled to GeoDjango. For example, GEOSGeometry objects may be used outside of a Django project/applicatio ...
t or use a database, etc. Mutability: GEOSGeometry objects may be modified. Cross-platform and tested; compat ...
ef introduction and tutorial to using GEOSGeometry objects. Creating a Geometry ¶ GEOSGeometry objects may be ...
s. This generally means that you are creating GEOS objects at the top level of some of your Python modules. T ...
-
https://man.plustar.jp/django/ref/contrib/gis/geos.html
- [similar]