per page, with , order by , clip by
Results of 1 - 9 of about 9 for streaming (0.005 sec.)
Django 1.5 リリースノート 12312
Django 1.5 リリースノート February 26, 2013 Django 1.5 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.4 or older versions. We'v ... abase when you call save() . This can help in high-concurrency operations, and can improve performance. Better support for streaming responses via the new StreamingHttpResponse response class. GeoDjango now supports PostGIS 2.0. ... and more; see below . ... f the relationship can be cached. This is particularly helpful in combination with prefetch_related . Explicit support for streaming responses Before Django 1.5, it was possible to create a streaming response by passing an iterator to HttpResponse . But t ... y middleware that accessed the content attribute would consume the iterator prematurely. You can now explicitly generate a streaming response with the new StreamingHttpResponse class. This class exposes a streaming_content attribute which is an iterator. ...
https://man.mtool.work/django/6.1/releases/1.5.html
ミドルウェア (Middleware) 10767
ミドルウェア (Middleware) ミドルウェアは、Django のリクエスト/レスポンス処理にフックを加えるためのフレームワークです。これは、Django の入力あるいは出力をグローバルに置き換えるための、軽量で低レベルの「プラグイン」システムです。 各ミドルウェ ... ズでは、ミドルウェアは逆順に呼び出されます。これには、 process_template_response() も含まれます。 ストリーミングレスポンス (streaming responses) を扱う HttpResponse とは違い、 StreamingHttpResponse は content 属性を持ちません。そのため、ミドルウェアはもはや ... ストリーミングレスポンスオブジェクトかどうかをチェックし、その結果によって処理を場合分けしなければなりません。 if response . streaming : response . streaming_content = wrap_streaming_content ( response . streaming_content ) else : response . content = alter ... _content ( response . content ) 注釈 streaming_content はメモリ上に置けないくらい大きいと想定しておくべきです。レスポンスミドルウェアでは、これを新しいジェネレータでラッ ...
https://man.mtool.work/django/6.1/topics/http/middleware.html
リクエストとレスポンスのオブジェクト 10389
リクエストとレスポンスのオブジェクト 簡単な概要 Django は、システムを通じてステータスを渡すために、リクエストとレスポンスのオブジェクトを使います。 あるページがリクエストされたとき、Django はリクエストに関するメタデータを含んだ HttpRequest ... トは、すぐに閉じられます。 レスポンスに対して、イテレータからクライアントにストリーミングさせる必要がある場合には、代わりに StreamingHttpResponse クラスを使う必要があります。 ヘッダーフィールドをセットする レスポンスでヘッダーフィールドを設定または削除する ... フレーズを使用します。 reason_phrase が明示的に設定されていない場合、 status_code の値に基づいて決定されます。 HttpResponse. streaming これは常に False です。 この属性は、ミドルウェアが通常のレスポンスとは違う形でストリーミングレスポンスを扱えるようにするた ... トラクターメソッドに encoder パラメータを渡すことができます。 >>> response = JsonResponse ( data , encoder = MyJSONEncoder ) StreamingHttpResponse オブジェクト class StreamingHttpResponse [ソース] StreamingHttpResponse クラスは、Djangoからブラウザへのレスポ ...
https://man.mtool.work/django/6.1/ref/request-response.html
Django 1.4.19 リリースノート 10012
Django 1.4.19 リリースノート January 27, 2015 Django 1.4.19 fixes a regression in the 1.4.18 security release. バグ修正 GZipMiddleware now supports streaming responses. As part of the 1.4.18 security release, the django.views.static.serve() ...
https://man.mtool.work/django/6.1/releases/1.4.19.html
CSVを出力する 7693
CSVを出力する このドキュメントでは、Django のビューを使って動的に CSV (Comma Separated Values) を出力する方法を説明しています。そのためには、Python のCSV ライブラリか Django のテンプレートシステムを使います。 Python の CSV ライブラリを使う ... イズの大きな CSV ファイルをストリーミングする 大きなサイズのレスポンスを生成するビューを取り扱うときには、代わりに Django の StreamingHttpResponse の使用を考えてみてください。例えば、生成に長時間を要するファイルをストリーミングことで、サーバーがレスポンスを ... ve compression efficiency when used with GZipMiddleware : import csv from itertools import batched from django.http import StreamingHttpResponse class Echo : """An object that implements just the write method of the file-like interface. """ def write ( se ... lf , value ): """Write the value by returning it, instead of storing in a buffer.""" return value def some_streaming_csv_view ( request ): """A view that streams a large CSV file.""" # Generate a sequence of rows. The range is based on the ...
https://man.mtool.work/django/6.1/howto/outputting-csv.html
Django 2.0 リリースノート 7693
Django 2.0 リリースノート December 2, 2017 Django 2.0 へようこそ! このリリースノートでは、 バージョン 2.0 の新機能 と、Django 1.11 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... The new chunk_size parameter of QuerySet.iterator() controls the number of rows fetched by the Python database client when streaming results from the database. For databases that don't support server-side cursors, it controls the number of results Django ... ace is increased from 20M to 50M and the default autoextend size is increased from 10M to 25M. To improve performance when streaming large result sets from the database, QuerySet.iterator() now fetches 2000 rows at a time instead of 100. The old behavior ...
https://man.mtool.work/django/6.1/releases/2.0.html
Django 2.2 リリースノート 7495
Django 2.2 リリースノート April 1, 2019 Django 2.2 へようこそ! このリリースノートでは、 バージョン 2.2 の新機能 と、Django 2.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... to the collectstatic --ignore option so that patterns like /vendor/*.js can be used. データベースバックエンド Added result streaming for QuerySet.iterator() on SQLite. ジェネリックビュー (汎用ビュー) The new View.setup hook initializes view attributes bef ...
https://man.mtool.work/django/6.1/releases/2.2.html
Django 6.1 release notes 7315
Django 6.1 release notes August 5, 2026 Welcome to Django 6.1! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 6.0 or earlier. We've begun the ... now be pickled and unpickled. テスト assertContains() and assertNotContains() can now be called multiple times on the same StreamingHttpResponse . Previously, they would consume the streaming response's content, causing subsequent calls to fail. ユーティリ ...
https://man.mtool.work/django/6.1/releases/6.1.html
Django 1.6 リリースノート 7118
Django 1.6 リリースノート 注釈 Dedicated to Malcolm Tredinnick On March 17, 2013, the Django project and the free software community lost a very dear friend and developer. Malcolm was a long-time contributor to Django, a model community mem ... e the most recent version of PostgreSQL available, because of performance improvements and to take advantage of the native streaming replication available in PostgreSQL 9.x. Changes to cycle and firstof The template system generally escapes all variables ...
https://man.mtool.work/django/6.1/releases/1.6.html
PREV 1 NEXT