per page, with , order by , clip by
Results of 1 - 10 of about 11 for hints (0.006 sec.)
データベースのマイグレーション・オペレーション 14278
データベースのマイグレーション・オペレーション これらの マイグレーションオペレーション は全て django.contrib.postgres.operations モジュールから利用できます。 マイグレーションを使って拡張機能を作成する マイグレーションファイルを使用して、デー ... に接続してクエリ CREATE EXTENSION IF NOT EXISTS hstore; を実行してください。 CreateExtension class CreateExtension ( name , hints = None ) [ソース] PostgreSQL拡張モジュールをインストールする Operation サブクラスです。一般的な拡張モジュールについては、以 ... 下のサブクラスのいずれかを使用してください。 name これは必須の引数です。インストールする拡張機能の名前です。 hints New in Django 6.0. The optional hints argument will be passed as **hints to the allow_migrate() method of database routers ... to assist them in making routing decisions . BloomExtension class BloomExtension ( hints = None ) [ソース] bloom 拡張機能をインストールします。 hints New in Django 6.0. The optional hints argument will be passed ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/operations.html
複数のデータベース 9655
複数のデータベース ここでは、Djangoがサポートする複数データベースの扱いについて説明します。残りのDjangoのドキュメントの大部分は、あなたが一つのデータベース扱うことを前提としています。複数のデータベースを使いたいなら、いくつかの追加ステップを ... きます。 データベース ルーター データベース ルーターは、以下の 4 つのメソッドを提供するクラスです: db_for_read ( model , ** hints ) model 型のオブジェクトの読み取り操作に使用するデータベースをサジェストします。 データベース操作がデータベースを選択する際 ... に役立つ追加情報を提供できる場合、それは hints 辞書で与えられます。有効なヒントの詳細は 下記 を参照してください。 サジェストがない場合は None を返します。 db_for_write ( ... model , ** hints ) Model型のオブジェクトの書き込みに使用するデータベースをサジェストします。 データベース操作がデータベースを選択する際に役 ...
https://man.mtool.work/django/6.1/topics/db/multi-db.html
データベースのマイグレーションの作成方法 8926
データベースのマイグレーションの作成方法 このドキュメントでは、遭遇する可能性のあるいくつかのシナリオに対する、データベースのマイグレーションの構成方法と書き方について説明します。マイグレーションに関する入門的な資料を探しているなら、 トピッ ... encies = [ # Dependencies to other migrations ] operations = [ migrations . RunPython ( forwards ), ] You can also provide hints that will be passed to the allow_migrate() method of database routers as **hints : myapp/dbrouters.py class MyRouter : def ... allow_migrate ( self , db , app_label , model_name = None , ** hints ): if "target_db" in hints : return db == hints [ "target_db" ] return True これをマイグレーションに利用するには、次のよう ... ns . Migration ): dependencies = [ # Dependencies to other migrations ] operations = [ migrations . RunPython ( forwards , hints = { "target_db" : "default" }), ] もし RunPython や RunSQL 操作が 1 つのモデルにしか影響しないのであれば、 model_name をヒ ...
https://man.mtool.work/django/6.1/howto/writing-migrations.html
マイグレーション・オペレーション 8606
マイグレーション・オペレーション マイグレーションファイルは一つ以上の オペレーション 、データベースに対してマイグレーションが行うべきオペレーションを宣言的に保持するオブジェクト、から構成されます。 Django はこれらの Operation オブジェクトも ... onstraint に置き換えます。 特別なオペレーション RunSQL class RunSQL ( sql , reverse_sql = None , state_operations = None , hints = None , elidable = False ) [ソース] データベース上で任意の SQL を実行できるようにします。Django が直接サポートしていない、 ... operations = [ migrations . AddField ( "musician" , "name" , models . CharField ( max_length = 255 ), ), ], ) オプションの hints 引数はデータベースルータオブジェクトの allow_migrate() メソッドに **hints として渡されてルーティングの決定を補助します。デ ... これは特に処理を逆の順序で行いたい場合に有用です。 RunPython class RunPython ( code , reverse_code = None , atomic = None , hints = None , elidable = False ) [ソース] マイグレーション履歴を反映して独自の Python コードを実行します。 code (与えられれば加 ...
https://man.mtool.work/django/6.1/ref/migration-operations.html
Django 6.0 release notes 8197
Django 6.0 release notes December 3, 2025 Welcome to Django 6.0! These release notes cover the new features , as well as some backwards incompatible changes you should be aware of when upgrading from Django 5.2 or earlier. We've begun the d ... tension , CryptoExtension , HStoreExtension , TrigramExtension , and UnaccentExtension operations now support the optional hints parameter. This allows providing database hints to database routers to assist them in making routing decisions . django.co ...
https://man.mtool.work/django/6.1/releases/6.0.html
Django 1.8 リリースノート 8144
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... and RunSQL now call the allow_migrate() method of database routers. The router can use the newly introduced app_label and hints arguments to make a routing decision. To take advantage of this feature you need to update the router to the new allow_mig ... () method of database routers has changed from allow_migrate(db, model) to allow_migrate(db, app_label, model_name=None, **hints) . When model_name is set, the value that was previously given through the model positional argument may now be found insi ... de the hints dictionary under the key 'model' . After switching to the new signature the router will also be called by the RunPython an ...
https://man.mtool.work/django/6.1/releases/1.8.html
Django のキャッシュフレームワーク 8108
Django のキャッシュフレームワーク 動的なウェブサイトの基本的なトレードオフは、ええと、それが動的であるということです。ユーザーがページをリクエストするたびに、ウェブサーバーはあらゆる種類の計算を行い (データベースのクエリから、テンプレートの ... 期されます。 class CacheRouter : """A router to control all database cache operations""" def db_for_read ( self , model , ** hints ): "All cache read operations go to the replica" if model . _meta . app_label == "django_cache" : return "cache_replica" r ... eturn None def db_for_write ( self , model , ** hints ): "All cache write operations go to primary" if model . _meta . app_label == "django_cache" : return "cache_primary" retu ... rn None def allow_migrate ( self , db , app_label , model_name = None , ** hints ): "Only install the cache model on primary" if app_label == "django_cache" : return db == "cache_primary" return None デー ...
https://man.mtool.work/django/6.1/topics/cache.html
Django の機能廃止のタイムライン 7966
Django の機能廃止のタイムライン このドキュメントは、 非推奨化ポリシー に従って、Django の様々なパーツが互換性を伴わない方法で変更または削除されるタイミングについて概説しています。各項目についての詳細は、多くの場合 2 つ前のバージョンのリリー ... e will be removed. It changed from allow_migrate(self, db, model) to allow_migrate(self, db, app_label, model_name=None, **hints) . Support for the syntax of {% cycle %} that uses comma-separated arguments will be removed. The warning that Signer issu ...
https://man.mtool.work/django/6.1/internals/deprecation.html
Django 1.7 リリースノート 7966
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... check framework We've added a new System check framework for detecting common problems (like invalid models) and providing hints for resolving those problems. The framework is extensible so you can add your own checks for your own apps and libraries. ...
https://man.mtool.work/django/6.1/releases/1.7.html
索引 7930
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... try の属性) hidden (Field の属性) hidden_settings (SafeExceptionReporterFilter の属性) HiddenInput (django.forms のクラス) hints (BloomExtension の属性) (BtreeGinExtension の属性) (BtreeGistExtension の属性) (CITextExtension の属性) (CreateExtension の ...
https://man.mtool.work/django/6.1/genindex.html
PREV 1 2 NEXT