per page, with , order by , clip by
Results of 1 - 10 of about 70 for params (0.005 sec.)
カスタムのルックアップを書く — Django 6.1 ドキュメント 12392
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » カスタムのルックアップを書く ¶ Django には (たとえば exact や icontains などの) フィルタリングを行う 組み込みのルックアップ がたくさんあります。この ... .models import Lookup class NotEqual ( Lookup ): lookup_name = "ne" def as_sql ( self , compiler , connection ): lhs , lhs_params = self . process_lhs ( compiler , connection ) rhs , rhs_params = self . process_rhs ( compiler , connection ) params = lh ... s_params + rhs_params return " %s <> %s " % ( lhs , rhs ), params NotEqual ルックアップを登録するために、ルックアップを有効にしたい ... t Lookup class AbsoluteValueLessThan ( Lookup ): lookup_name = "lt" def as_sql ( self , compiler , connection ): lhs , lhs_params = compiler . compile ( self . lhs . lhs ) rhs , rhs_params = self . process_rhs ( compiler , connection ) params = lhs_par ...
https://man.mtool.work/django/6.1/howto/custom-lookups.html
カスタムのルックアップを書く — Django 6.1 ドキュメント 12307
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » カスタムのルックアップを書く ¶ Django には (たとえば exact や icontains などの) フィルタリングを行う 組み込みのルックアップ がたくさんあります。この ... .models import Lookup class NotEqual ( Lookup ): lookup_name = "ne" def as_sql ( self , compiler , connection ): lhs , lhs_params = self . process_lhs ( compiler , connection ) rhs , rhs_params = self . process_rhs ( compiler , connection ) params = lh ... s_params + rhs_params return " %s <> %s " % ( lhs , rhs ), params NotEqual ルックアップを登録するために、ルックアップを有効にしたい ... t Lookup class AbsoluteValueLessThan ( Lookup ): lookup_name = "lt" def as_sql ( self , compiler , connection ): lhs , lhs_params = compiler . compile ( self . lhs . lhs ) rhs , rhs_params = self . process_rhs ( compiler , connection ) params = lhs_par ...
https://man.mtool.work/django/6.1/howto/custom-lookups.html
データベースの計測 — Django 6.1 ドキュメント 10658
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » データベースの計測 ¶ コードから発行されたクエリを理解して制御するために、Django は、データベースクエリの実行周辺にラッパー関数をインストールするため ... するために、残りのパラメータと一緒に呼び出される呼び出し可能オブジェクト。 sql -- データベースに送信する SQL クエリの str 。 params -- SQL コマンドのパラメータ値のリストまたはタプル、または、ラップされた呼び出しが executemany() の場合はリストまたはタプル ... のリストまたはタプル。 many -- 最終的に呼び出すのが execute() なのか executemany() なのかを示す bool ( params が値のシーケンスなのか、値のシーケンスのシーケンスなのかを示します)。 context -- 呼び出しのコンテキストに関するデータを含む ... う少し複雑なバージョンのブロッカーで、エラーメッセージにコネクション名を含めることができます。 def blocker ( execute , sql , params , many , context ): alias = context [ "connection" ] . alias raise Exception ( "Access to database ' {} ' blocked here" . ...
https://man.mtool.work/django/6.1/topics/db/instrumentation.html
データベースの計測 — Django 6.1 ドキュメント 10503
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » データベースの計測 ¶ コードから発行されたクエリを理解して制御するために、Django は、データベースクエリの実行周辺にラッパー関数をインストールするため ... するために、残りのパラメータと一緒に呼び出される呼び出し可能オブジェクト。 sql -- データベースに送信する SQL クエリの str 。 params -- SQL コマンドのパラメータ値のリストまたはタプル、または、ラップされた呼び出しが executemany() の場合はリストまたはタプル ... のリストまたはタプル。 many -- 最終的に呼び出すのが execute() なのか executemany() なのかを示す bool ( params が値のシーケンスなのか、値のシーケンスのシーケンスなのかを示します)。 context -- 呼び出しのコンテキストに関するデータを含む ... う少し複雑なバージョンのブロッカーで、エラーメッセージにコネクション名を含めることができます。 def blocker ( execute , sql , params , many , context ): alias = context [ "connection" ] . alias raise Exception ( "Access to database ' {} ' blocked here" . ...
https://man.mtool.work/django/6.1/topics/db/instrumentation.html
テストツール — Django 6.1 ドキュメント 9008
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストツール ¶ Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecos ... force_csrf_checks = False , raise_request_exception = True , json_encoder = DjangoJSONEncoder , * , headers = None , query_params = None , ** defaults ) [ソース] ¶ テスト用の HTTP クライアントです。いくつかの引数で動作をカスタマイズできます。 headers に ... ヘッダを指定できます。例えば、 User-Agent ヘッダの場合: client = Client ( headers = { "user-agent" : "curl/7.79.1" }) query_params を使用すると、すべてのリクエストに設定されるデフォルトのクエリ文字列を指定できます。 **defaults 内の任意のキーワード引数に ... がヘッダーとして設定されますが、可読性のために headers パラメーターの使用を推奨します。 The values from the headers , query_params , and extra keyword arguments passed to get() , post() , etc. have precedence over the defaults passed to the class constr ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
テストツール — Django 6.1 ドキュメント 9008
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テストツール ¶ Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecos ... force_csrf_checks = False , raise_request_exception = True , json_encoder = DjangoJSONEncoder , * , headers = None , query_params = None , ** defaults ) [ソース] ¶ テスト用の HTTP クライアントです。いくつかの引数で動作をカスタマイズできます。 headers に ... ヘッダを指定できます。例えば、 User-Agent ヘッダの場合: client = Client ( headers = { "user-agent" : "curl/7.79.1" }) query_params を使用すると、すべてのリクエストに設定されるデフォルトのクエリ文字列を指定できます。 **defaults 内の任意のキーワード引数に ... がヘッダーとして設定されますが、可読性のために headers パラメーターの使用を推奨します。 The values from the headers , query_params , and extra keyword arguments passed to get() , post() , etc. have precedence over the defaults passed to the class constr ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
素の SQL 文の実行 — Django 6.1 ドキュメント 8529
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 素の SQL 文の実行 ¶ Django gives you three ways of performing raw SQL queries: you can embed raw SQL fragments into ORM queries using RawSQL (see Ra ... ているかどうか、 サポートチャンネル で尋ねてみてください。 警告 直接 SQL を書く場合はいつでも十分警戒するべきです。利用者が params を利用する事で任意に設定可能な全てのパラメータは必ず、SQL インジェクション攻撃から防御するために適切にエスケープすべきです ... aw() マネージャメソッドは素の SQL 文を処理してモデルのインスタンスを返させる場合に利用できます: Manager. raw ( raw_query , params = () , translations = None ) ¶ このメソッドは素の SQL クエリを受け取り、実行し、 django.db.models.query.RawQuerySet インス ... FieldDoesNotExist 例外が発生します。 raw() にパラメータを渡す ¶ パラメータを用いたクエリを使用する場合は、 raw() に対して params 引数を利用できます: >>> lname = "Doe" >>> Person . objects . raw ( "SELECT * FROM myapp_person WHERE last_name = %s " , [ ...
https://man.mtool.work/django/6.1/topics/db/sql.html
テンプレートのバックエンドをカスタマイズする — Django 6.1 ドキュメント 8374
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テンプレートのバックエンドをカスタマイズする ¶ カスタムのバックエンド ¶ ここでは、他のテンプレートシステムを使用するために、カスタムテンプレートバッ ... y containing the templates for this engine # inside an installed application. app_dirname = "foobar" def __init__ ( self , params ): params = params . copy () options = params . pop ( "OPTIONS" ) . copy () super () . __init__ ( params ) self . engine = ... ate テンプレート 発生 self カスタム foobar name context エンジン lines csrf exc request postmortem バックエンド django def params Django 例外 関連するページ テンプレート Python プログラマーのための Django テンプレート言語 フォームレンダリング API シンプ ...
https://man.mtool.work/django/6.1/howto/custom-template-backend.html
Django 4.1 リリースノート — Django 6.1 ドキュメント 8374
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 4.1 リリースノート ¶ 2022年8月3日 Django 4.1 へようこそ! このリリースノートでは、 バージョン 4.1 の新機能 と、Django 4.0 以前からアップグレー ... . DatabaseOperations._convert_field_to_tz() is replaced by DatabaseOperations._convert_sql_to_tz() that accepts the sql , params , and tzname arguments. Several date and time methods on DatabaseOperations now take sql and params arguments instead of f ... olated into that SQL. The changed methods have these new signatures: DatabaseOperations.date_extract_sql(lookup_type, sql, params) DatabaseOperations.datetime_extract_sql(lookup_type, sql, params, tzname) DatabaseOperations.time_extract_sql(lookup_type ... , sql, params) DatabaseOperations.date_trunc_sql(lookup_type, sql, params, tzname=None) DatabaseOperations.datetime_trunc_sql(self, look ...
https://man.mtool.work/django/6.1/releases/4.1.html
テンプレートのバックエンドをカスタマイズする — Django 6.1 ドキュメント 8374
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » テンプレートのバックエンドをカスタマイズする ¶ カスタムのバックエンド ¶ ここでは、他のテンプレートシステムを使用するために、カスタムテンプレートバッ ... y containing the templates for this engine # inside an installed application. app_dirname = "foobar" def __init__ ( self , params ): params = params . copy () options = params . pop ( "OPTIONS" ) . copy () super () . __init__ ( params ) self . engine = ... を作る 関連キーワード template テンプレート self カスタム foobar context エンジン lines csrf request postmortem バックエンド params import TemplateDoesNotExist lazy engine None 属性 backends BaseEngine TemplateSyntaxError input token init クイック検索 La ...
https://man.mtool.work/django/6.1/howto/custom-template-backend.html
PREV 1 2 3 4 5 6 7 NEXT