per page, with , order by , clip by
Results of 1 - 10 of about 15 for sync (0.004 sec.)
非同期サポート 15134
非同期サポート 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 ... ost (see パフォーマンス ), and without the ability to have efficient long-running requests. Many parts of Django provide asynchronous APIs, including the ORM , the cache framework, authentication, sessions, and signals. For other code, the sync_to_a ... sync() adapter is a low-cost bridge (see パフォーマンス ). A wide range of async-native Python libraries can also be integrated. 非同期ビュー どのようなビューでも、呼び出し可能オブジェクトでコルーチンを返 ... すようにすれば、非同期として宣言できます。その際には、一般的に async def を使います。関数ベースのビューの場合、 async def を用いてビュー全体を宣言します。クラスベースのビューの場合、 get() と ...
https://man.mtool.work/django/6.1/topics/async.html
ミドルウェア (Middleware) 9004
ミドルウェア (Middleware) ミドルウェアは、Django のリクエスト/レスポンス処理にフックを加えるためのフレームワークです。これは、Django の入力あるいは出力をグローバルに置き換えるための、軽量で低レベルの「プラグイン」システムです。 各ミドルウェ ... グ関数は一致する必要があります。ミドルウェアがこの種のイテレータをサポートする必要がある場合には、 StreamingHttpResponse.is_async 確認してください。 例外のハンドリング Django はビューまたはミドルウェアによって起こされた例外を、エラーステータスコードを持 ... エストのみを処理できると想定します。この前提を変更するには、ミドルウェア ファクトリ関数またはクラスに次の属性を設定します。 sync_capable は、ミドルウェアが同期リクエストを処理できるかどうかを表すブール値です。デフォルトは True 。 async_capable は、ミド ... ルウェアが非同期リクエストを処理できるかどうかを表すブール値です。デフォルトは False 。 If your middleware has both sync_capable = True and async_capable = True , then Django will pass it the request without converting it. In this case, you ca ...
https://man.mtool.work/django/6.1/topics/http/middleware.html
シグナル 8551
シグナル Django には "シグナルディスパッチャ" があり、フレームワークの他の場所でアクションが発生したときに、ほかのアプリケーションが通知を受けるのを助けてくれます。簡単に言うと、シグナルは特定の 送り手 が、あるアクションが発生したことを一連 ... 引数が追加される可能性があり、レシーバはその新しい引数を扱えなければならないからです。 レシーバーは同じシグネチャーを持ち、 async def を使って宣言された非同期関数になることもできます: async def my_receiver ( sender , ** kwargs ): await asyncio . sleep ... 返されるエラーの __traceback__ 属性に存在します。 asend() は send() と似ていますが、await しなければならないコルーチンです: async def asend_pizza ( self , toppings , size ): await pizza_done . asend ( sender = self . __class__ , toppings = toppings , s ... ize = size ) ... Whether synchronous or asynchronous, receivers will be correctly adapted to whether send() or asend() is used. Synchronous receivers wi ...
https://man.mtool.work/django/6.1/topics/signals.html
Django の例外 8394
Django の例外 Django は普通の Python の例外の他に、いくつか独自の例外も起こします。 Django Core 例外 Django core 例外クラスは django.core.exceptions で定義されています。 AppRegistryNotReady exception AppRegistryNotReady [ソース] この例外は、 ... ードを変更している場合、ソケットがクリーンに閉じられるように、中断されたリクエストに遭遇した際にはこれを発生させるべきです。 SynchronousOnlyOperation exception SynchronousOnlyOperation [ソース] SynchronousOnlyOperation 例外は、同期的な Python コードでの ... スレッドから同期専用のコードを呼び出そうとしている場合は、同期スレッドを作成し、その中で呼び出してください。これは、 asgiref.sync.sync_to_async() を使用して実現できます。 URL Resolver の例外 URL Resolver の例外は django.urls で定義されています。 Resolv ...
https://man.mtool.work/django/6.1/ref/exceptions.html
Django 6.0.4 release notes 8394
Django 6.0.4 release notes April 7, 2026 Django 6.0.4 fixes one security issue with severity "moderate", four security issues with severity "low", and several bugs in 6.0.3. Also, the latest string translations from Transifex are incorporat ... where alogin() and alogout() did not respectively set or clear request.user if it had already been materialized (e.g., by sync middleware) ( #37017 ). Fixed a regression in Django 6.0 in admin forms where RelatedFieldWidgetWrapper incorrectly wrappe ...
https://man.mtool.work/django/6.1/releases/6.0.4.html
Django 4.1 リリースノート 8290
Django 4.1 リリースノート 2022年8月3日 Django 4.1 へようこそ! このリリースノートでは、 バージョン 4.1 の新機能 と、Django 4.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... ス・ビューにおける非同期ハンドラ ビューのサブクラスで、非同期の HTTP メソッドハンドラーを定義できるようになりました: import asyncio from django.http import HttpResponse from django.views import View class AsyncView ( View ): async def get ( self , requ ... est , * args , ** kwargs ): # Perform view logic using await. await asyncio . sleep ( 1 ) return HttpResponse ( "Hello async world!" ) 詳細は 非同期のクラスベース・ビュー を参照してください。 非同 ... 期の ORM インターフェース QuerySet now provides an asynchronous interface for all data access operations. These are named as-per the existing synchronous operations but with an a ...
https://man.mtool.work/django/6.1/releases/4.1.html
Django のユーザーデータベースに対する Apache からの認証 8237
Django のユーザーデータベースに対する Apache からの認証 Since keeping multiple authentication databases in sync is a common problem when dealing with Apache, you can configure Apache to authenticate against Django's authentication system di ...
https://man.mtool.work/django/6.1/howto/deployment/wsgi/apache-auth.html
テストツール 8237
テストツール Django は、テストを書くのに便利なツールをいくつか提供しています。 There are community-maintained solutions! Django has a vibrant ecosystem. There are testing and fixtures solutions highlighted on the Community Ecosystem page. T ... agment equality or inequality assertJSONEqual() JSON fragment equality 編集した設定 でテストを実行する機能。 Access to the synchronous and asynchronous test clients via the client and async_client attributes. データベースクエリを作る手薄との場合、サブ ... cumentation を参照してください。 テストケースの機能 デフォルトのテストクライアント SimpleTestCase. client SimpleTestCase. async_client Every django.test.*TestCase instance has access to Django's synchronous and asynchronous test clients as self.clien ... t and self.async_client , respectively. Both clients are recreated for each test, so you don't have to worry about state (such as cookies) ...
https://man.mtool.work/django/6.1/topics/testing/tools.html
Django ユーティリティ (django.utils) 8133
Django ユーティリティ ( django.utils ) このドキュメントは、 django.utils のすべての安定したモジュールを対象としています。 django.utils 内のほとんどのモジュールは内部使用を目的としていることから、 内部リリース非推奨ポリシー に従い、以下に記載 ... す: cache_page = decorator_from_middleware_with_args ( CacheMiddleware ) @cache_page ( 3600 ) def my_view ( request ): pass sync_only_middleware ( middleware ) [ソース] ミドルウェアを 同期専用 としてマークします。(これはDjangoのデフォルトですが、将来的 ... にデフォルトが変更された場合に備えて、あらかじめ設定しておくことを可能にします。) async_only_middleware ( middleware ) [ソース] ミドルウェアを 非同期専用 としてマークします。WSGIリクエストパスから呼び出されたと ... き、Djangoはそれを非同期イベントループでラップします。 sync_and_async_middleware ( middleware ) [ソース] ミドルウェアを 同期および非同期互換 としてマークすることで、リクエストの変換を ...
https://man.mtool.work/django/6.1/ref/utils.html
Django 3.1 リリースノート 8081
Django 3.1 リリースノート August 4, 2020 Django 3.1 へようこそ! このリリースノートでは、 バージョン 3.1 の新機能 と、Django 3.0 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... 。各バージョン系列の最新リリースのみを公式にサポートし、最新リリースを使用することを 強く推奨 します。 Django 3.1 の新機能 Asynchronous views and middleware support Django now supports a fully asynchronous request path, including: Asynchronous views A ... synchronous middleware Asynchronous tests and test client To get started with async views, you need to declare a view using async def : async def my_vi ... ew ( request ): await asyncio . sleep ( 0.5 ) return HttpResponse ( "Hello, async world!" ) All asynchronous features are supported whether you are ru ...
https://man.mtool.work/django/6.1/releases/3.1.html
PREV 1 2 NEXT