per page, with , order by , clip by
Results of 1 - 10 of about 13 for wrapper (0.005 sec.)
データベースの計測 14692
データベースの計測 コードから発行されたクエリを理解して制御するために、Django は、データベースクエリの実行周辺にラッパー関数をインストールするためのフックを提供しています。たとえば、ラッパーは、クエリのカウント、クエリの実行時間の測定、クエ ... iew ( request ): context = { ... } # Code to generate context with all data. template_name = ... with connection . execute_wrapper ( blocker ): return render ( request , template_name , context ) ラッパーに送られるパラメーターは以下の通りです: execute - ... を作成し、ラッパーとしてインストールします。 from django.db import connection ql = QueryLogger () with connection . execute_wrapper ( ql ): do_queries () # Now we can print the log. print ( ql . queries ) connection.execute_wrapper() connection. execute_ ... wrapper ( wrapper ) 入力すると、データベースクエリ実行の周囲にラッパーをインストールし、終了するとラッパーを削除するコンテキストマネージャを ...
https://man.mtool.work/django/6.1/topics/db/instrumentation.html
フィクスチャ (fixture) 9466
フィクスチャ (fixture) フィクスチャ (fixture) とは、シリアライズされたデータベースのコンテンツを含むファイルのコレクションです。各フィクスチャにはユニークな名前があり、フィクスチャを構成するファイルは、複数のアプリケーションの複数のディレク ... ignal_handler ): """ Decorator that turns off signal handlers when loading fixture data. """ @wraps ( signal_handler ) def wrapper ( * args , ** kwargs ): if kwargs [ "raw" ]: return signal_handler ( * args , ** kwargs ) return wrapper @disable_for_load ...
https://man.mtool.work/django/6.1/topics/db/fixtures.html
Pythonモジュール索引 8745
Pythonモジュール索引 a | c | d | f | h | m | s | t | u | v a django.apps c django.conf django.conf.urls django.conf.urls.i18n django.contrib django.contrib.admin Django's admin site. django.contrib.admindocs Django's admin documentation gen ... ngo.core.validators Validation utilities and base classes d django.db django.db.backends Core signals sent by the database wrapper. django.db.backends.base.schema django.db.migrations Schema migration support for Django models django.db.migrations.opera ...
https://man.mtool.work/django/6.1/py-modindex.html
File オブジェクト 8745
File オブジェクト django.core.files モジュールとそのサブモジュールでは、Django の基本的なファイルハンドリングに関するビルトインクラスが定義されています。 File クラス class File ( file_object , name = None ) [ソース] The File class is a thin ... wrapper around a Python file object with some Django-specific additions. Internally, Django uses this class when it needs to repre ...
https://man.mtool.work/django/6.1/ref/files/file.html
GDAL API 8199
GDAL API 概要 GDAL stands for Geospatial Data Abstraction Library , and is a veritable "Swiss army knife" of GIS data functionality. A subset of GDAL is the OGR Simple Features Library, which specializes in reading and writing vector geogra ... com/django/django/main/tests/gis_tests/data/rasters/raster.tif ベクトルデータソースオブジェクト DataSource DataSource is a wrapper for the OGR data source object that supports reading data from a variety of OGR-supported geospatial file formats and data ... e of feature geometry ... geom . transform ( ct ) # transforming ... ラスターデータオブジェクト GDALRaster GDALRaster is a wrapper for the GDAL raster source object that supports reading data from a variety of GDAL-supported geospatial file formats and ...
https://man.mtool.work/django/6.1/ref/contrib/gis/gdal.html
Django 1.3 リリースノート 8199
Django 1.3 リリースノート March 23, 2011 Django 1.3 へようこそ! Nearly a year in the making, Django 1.3 includes quite a few new features and plenty of bug fixes and improvements to existing features. These release notes cover the new featu ... w pending deprecation. CompatCookie Previously, django.http exposed an undocumented CompatCookie class, which was a bugfix wrapper around the standard library SimpleCookie . As the fixes are moving upstream, this is now deprecated - you should use from ... n't included in the translation building process for JavaScript literals. This deprecation removes such inconsistency. PermWrapper moved to django.contrib.auth.context_processors In Django 1.2, we began the process of changing the location of the auth c ... ontext processor from django.core.context_processors to django.contrib.auth.context_processors . However, the PermWrapper support class was mistakenly omitted from that migration. In Django 1.3, the PermWrapper class has also been moved to djan ...
https://man.mtool.work/django/6.1/releases/1.3.html
Django 3.0 リリースノート 8199
Django 3.0 リリースノート 2019年12月2日 Django 3.0 へようこそ! このリリースノートでは、 バージョン 3.0 の新機能 と、Django 2.2 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... lru_cache() - Alias of functools.lru_cache() . django.utils.decorators.available_attrs() - This function returns functools.WRAPPER_ASSIGNMENTS . django.utils.decorators.ContextDecorator - Alias of contextlib.ContextDecorator . django.utils._os.abspathu( ...
https://man.mtool.work/django/6.1/releases/3.0.html
非同期サポート 8199
非同期サポート Django has support for writing asynchronous ("async") views, along with an entirely async-enabled request stack if you are running under ASGI . Async views will still work under WSGI, but with a small per-request adaptation c ... ard library. As well as ensuring threadlocals work, it also enables the thread_sensitive mode of sync_to_async() when that wrapper is used below it. In the cold path (no running event loop) it pays the cost of starting a fresh event loop, like asyncio.r ... ection attributes across threads: >>> await sync_to_async ( connection . cursor )() django.db.utils.DatabaseError: DatabaseWrapper objects created in a thread can only be used in that same thread. The object with alias 'default' was created in thread id ...
https://man.mtool.work/django/6.1/topics/async.html
シグナル 8023
シグナル Djangoが送信する全てのシグナルのリストです。全ての組み込みシグナルは send() メソッドを使用して送信されます。 参考 シグナルの登録方法と受信方法に関する情報については、 シグナルディスパッチャ のドキュメントを参照してください。 認証フ ... ッパーによって送信されるシグナル。 connection_created django.db.backends.signals. connection_created Sent when the database wrapper makes the initial connection to the database. This is particularly useful if you'd like to send any post connection comman ... ルとともに送信される引数は以下の通りです: sender データベースラッパークラス - つまり、 django.db.backends.postgresql.DatabaseWrapper や django.db.backends.mysql.DatabaseWrapper などです。 connection オープンされたデータベース接続です。これは、複数のデータ ...
https://man.mtool.work/django/6.1/ref/signals.html
Django 2.0 リリースノート 8023
Django 2.0 リリースノート December 2, 2017 Django 2.0 へようこそ! このリリースノートでは、 バージョン 2.0 の新機能 と、Django 1.11 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... ated() . The new field_name parameter of QuerySet.in_bulk() allows fetching results based on any unique model field. CursorWrapper.callproc() now takes an optional dictionary of keyword parameters, if the backend supports this feature. Of Django's built ... -in backends, only Oracle supports it. The new connection.execute_wrapper() method allows installing wrappers around execution of database queries . The new filter argument for built-in aggregates ... e SQL to perform the operation instead of SQL and a list of parameters. Third-party database backends should add a DatabaseWrapper.display_name attribute with the name of the database that your backend works with. Django may use it in various messages, ...
https://man.mtool.work/django/6.1/releases/2.0.html
PREV 1 2 NEXT