検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 185 for objects (0.039 sec.)
The "sites" framework — Django 4.0.6 ドキュメント 8120
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... nal "sites" framework. It's a hook for associating objects and functionality to particular websites, and it's ... tail ( request , article_id ): try : a = Article . objects . get ( id = article_id , sites__id = get_current_ ... function_without_request (): current_site = Site . objects . get_current () if current_site . domain == 'foo. ... needs to be different for each site. By using Site objects, we can abstract the "thank you" notice to use the ...
https://man.plustar.jp/django/ref/contrib/sites.html - [similar]
アグリゲーション — Django 4.0.6 ドキュメント 8120
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ようになります: # Total number of books. >>> Book . objects . count () 2452 # Total number of books with publi ... sher=BaloneyPress >>> Book . objects . filter ( publisher__name = 'BaloneyPress' ) . co ... s. >>> from django.db.models import Avg >>> Book . objects . all () . aggregate ( Avg ( 'price' )) { 'price__ ... s. >>> from django.db.models import Max >>> Book . objects . all () . aggregate ( Max ( 'price' )) { 'price__ ...
https://man.plustar.jp/django/topics/db/aggregation.html - [similar]
クエリー式 — Django 4.0.6 ドキュメント 7900
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... es that have more employees than chairs. Company . objects . filter ( num_employees__gt = F ( 'num_chairs' )) ... Both the querysets below are equivalent. Company . objects . filter ( num_employees__gt = F ( 'num_chairs' ) ... * 2 ) Company . objects . filter ( num_employees__gt = F ( 'num_chairs' ) ... any to seat all employees? >>> company = Company . objects . filter ( ... num_employees__gt = F ( 'num_chairs ...
https://man.plustar.jp/django/ref/models/expressions.html - [similar]
Full text search — Django 4.0.6 ドキュメント 7713
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e column in the database. For example: >>> Entry . objects . filter ( body_text__search = 'Cheese' ) [<Entry: ... ib.postgres.search import SearchVector >>> Entry . objects . annotate ( ... search = SearchVector ( 'body_tex ... he search document includes them all. SearchVector objects can be combined together, allowing you to reuse th ... em. For example: >>> Entry . objects . annotate ( ... search = SearchVector ( 'body_tex ...
https://man.plustar.jp/django/ref/contrib/postgres/search.html - [similar]
Related objects reference — Django 4.0.6 ドキュメント 7680
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... | Index | Modules « previous | up | next » Related objects reference ¶ class RelatedManager ¶ A "related mana ... ルオブジェクトを追加します。 実装例: >>> b = Blog . objects . get ( id = 1 ) >>> e = Entry . objects . get ( i ... ) is used to perform the update. This requires the objects to already be saved. You can use the bulk=False ar ... a new object, saves it and puts it in the related object set. Returns the newly created object: >>> b = Blog ...
https://man.plustar.jp/django/ref/models/relations.html - [similar]
一対一 (one-to-one) 関係 — Django 4.0.6 ドキュメント 7570
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... , address = '944 W. Fullerton' ) >>> Restaurant . objects . create ( place = p3 , serves_hot_dogs = True , s ... due to unsaved related object 'place'. Restaurant.objects.all() returns the Restaurants, not the Places. Not ... ated in the call to r.place = p2: >>> Restaurant . objects . all () <QuerySet [<Restaurant: Demon Dogs the re ... <Restaurant: Ace Hardware the restaurant>]> Place.objects.all() returns all Places, regardless of whether th ...
https://man.plustar.jp/django/topics/db/examples/one_to_one.html - [similar]
複数のデータベース — Django 4.0.6 ドキュメント 7405
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ng scheme. The default routing scheme ensures that objects remain 'sticky' to their original database (i.e., ... tabase that should be used for read operations for objects of type model . If a database operation is able to ... est the database that should be used for writes of objects of type Model. If a database operation is able to ... ermine if a relation should be allowed between two objects. If no router has an opinion (i.e. all routers ret ...
https://man.plustar.jp/django/topics/db/multi-db.html - [similar]
Conditional Expressions — Django 4.0.6 ドキュメント 7328
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... condition can be specified using field lookups , Q objects, or Expression objects that have an output_field t ... ) >>> # Complex conditions can be created using Q objects >>> When ( Q ( name__startswith = "John" ) | Q ( n ... , OuterRef >>> non_unique_account_type = Client . objects . filter ( ... account_type = OuterRef ( 'account_ ... in Python . Each condition in the provided When() objects is evaluated in order, until one evaluates to a tr ...
https://man.plustar.jp/django/ref/models/conditional-expressions.html - [similar]
GeoDjango Database API — Django 4.0.6 ドキュメント 7295
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 20, 20 15, 10 10))' ) >>> z . save () GEOSGeometry objects may also be used to save geometric models: >>> fro ... input. For more information creating GEOSGeometry objects, refer to the GEOS tutorial . Creating and Saving ... raster/volcano.tif' ) >>> dem . save () GDALRaster objects may also be used to save raster models: >>> from d ... ote that this equivalent to: >>> dem = Elevation . objects . create ( ... name = 'Canyon' , ... rast = { 'wid ...
https://man.plustar.jp/django/ref/contrib/gis/db-api.html - [similar]
データベースアクセスの最適化 — Django 4.0.6 ドキュメント 7240
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... here is caching of the result of attributes on ORM objects. In general, attributes that are not callable will ... ming the example blog models : >>> entry = Entry . objects . get ( id = 1 ) >>> entry . blog # Blog object is ... 毎回 DB の検索を引き起こします: >>> entry = Entry . objects . get ( id = 1 ) >>> entry . authors . all () # qu ... sing the example blog models : >>> entry = Entry . objects . get ( id = 10 ) 上記は以下よりも高速です: >>> en ...
https://man.plustar.jp/django/topics/db/optimization.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 NEXT