per page, with , order by , clip by
Results of 1 - 6 of about 6 for Apple (0.008 sec.)
全文検索 11406
全文検索 django.contrib.postgres.search モジュールのデータベース関数は PostgreSQL の 全文検索エンジン を利用しやすくしています。 このドキュメントの例では、 クエリを作成する で定義されたモデルを使用します。 参考 検索の概要については、 トピッ ... earch = vector ) . filter ( ... search = SearchQuery ( Lexeme ( "fruit" ) & Lexeme ( "dessert" )) ... ) <QuerySet [<Entry: Apple Crumble Recipes>, <Entry: Banana Split Recipes>]> >>> Entry . objects . annotate ( search = vector ) . filter ( ... search ... = SearchQuery ( Lexeme ( "fruit" ) & Lexeme ( "dessert" ) & ~ Lexeme ( "banana" )) ... ) <QuerySet [<Entry: Apple Crumble Recipes>]> Lexeme objects also support term weighting and prefixes: >>> Entry . objects . annotate ( search = vect ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/search.html
モデル 11406
モデル モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは単一のデータベースのテーブルに対応付けられます。 基本: モデルは各々 Python のクラスであり dja ... 100 , primary_key = True ) color = models . CharField ( max_length = 100 ) >>> fruit = Fruit . objects . create ( name = "Apple" , color = "Green" ) >>> fruit . name = "Pear" >>> fruit . save () >>> Fruit . objects . order_by ( "name" ) . values_list ... ( "name" , "color" ) <QuerySet [('Apple', 'Green'), ('Pear', 'Green')]> >>> # Saving with an existing primary key updates that row. >>> pear = Fruit . objects . g ... et ( name = "Pear" ) >>> pear . name = "Apple" >>> pear . color = "Red" >>> pear . save () >>> Fruit . objects . order_by ( "name" ) . values_list ( "name" , "color" ) ...
https://man.mtool.work/django/6.1/topics/db/models.html
複合主キー 9706
複合主キー Django では、すべてのモデルに主キーが存在します。デフォルトでは、この主キーは単一のフィールドで構成されます。 ほとんどの場合、単一の主キーで十分です。しかし、データベース設計においては、複数のフィールドからなる主キーが必要になるこ ... )を作成するようになります。 複合主キーは tuple (タプル)で表現されます: >>> product = Product . objects . create ( name = "apple" ) >>> order = Order . objects . create ( reference = "A755H" ) >>> item = OrderLineItem . objects . create ( product = pr ...
https://man.mtool.work/django/6.1/topics/composite-primary-key.html
エラーレポートの管理 7988
エラーレポートの管理 サイトを公開している場合、 DEBUG 設定は常にオフにしておかなければなりません。これにより、サーバー動作は高速になり、エラーページによって明らかになるアプリケーションの詳細が悪意あるユーザーに漏れるのを防ぎます。 しかし、 ... ラウザやクローラがよくリクエストする従来の URL を除外する方法の例です: import re IGNORABLE_404_URLS = [ re . compile ( r "^/apple-touch-icon.*\.png$" ), re . compile ( r "^/favicon\.ico$" ), re . compile ( r "^/robots\.txt$" ), ] (これらは正規表現なので ...
https://man.mtool.work/django/6.1/howto/error-reporting.html
配信 (syndication) フィード フレームワーク 7128
配信 (syndication) フィード フレームワーク Django には、 RSS と Atom フィードを作成するための高レベルな配信 (syndication) フィード生成フレームワークが付属しています。 任意の配信フィードを作成するには、短い Python クラスを書くだけで済みます。 ... ソッドと writeString() メソッドを完全に置き換える必要があります。 しかし、フィードフォーマットがRSSやAtom(例えば、 GeoRSS 、Appleの iTunes podcast format など)の派生形式である場合、より良い選択肢があります。これらのタイプのフィードは、通常、基本となるフ ...
https://man.mtool.work/django/6.1/ref/contrib/syndication.html
クエリ式 (Query Expression) 7128
クエリ式 (Query Expression) クエリ式 (query expression) は、update、create、filter、order by、annotation、またはaggregateの一部として使用できる値または計算を記述します。式が真偽値を出力する場合、フィルタで直接使用できます。クエリの記述に使用 ... = CharField (), ... ) ... ) >>> for c in qs : ... print ( " %s : %s " % ( c . name , c . tagline )) ... Google: Do No Evil Apple: AAPL Yahoo: Internet Company Django Software Foundation: No Tagline SQL インジェクションを防ぐ Func の __init__() ( **ext ...
https://man.mtool.work/django/6.1/ref/models/expressions.html
PREV 1 NEXT