per page, with , order by , clip by
Results of 1 - 10 of about 30 for stream (0.004 sec.)
Django 1.4.19 リリースノート — Django 6.1 ドキュメント 12996
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.4.19 リリースノート ¶ January 27, 2015 Django 1.4.19 fixes a regression in the 1.4.18 security release. バグ修正 ¶ GZipMiddleware now suppo ... rts streaming responses. As part of the 1.4.18 security release, the django.views.static.serve() function was altered to stream the f ... iles it serves. Unfortunately, the GZipMiddleware consumed the stream prematurely and prevented files from being served properly ( #24158 ). 目次 Django 1.4.19 リリースノート バグ修正 前のトピ ... クへ Django 1.4.20 リリースノート 次のトピックへ Django 1.4.18 リリースノート 関連キーワード security release GZipMiddleware stream files リリースノート January fixes regression バグ 修正 supports streaming responses part views static serve altered serve ...
https://man.mtool.work/django/6.1/releases/1.4.19.html
Django 1.4.19 リリースノート — Django 6.1 ドキュメント 12509
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.4.19 リリースノート ¶ January 27, 2015 Django 1.4.19 fixes a regression in the 1.4.18 security release. バグ修正 ¶ GZipMiddleware now suppo ... rts streaming responses. As part of the 1.4.18 security release, the django.views.static.serve() function was altered to stream the f ... iles it serves. Unfortunately, the GZipMiddleware consumed the stream prematurely and prevented files from being served properly ( #24158 ). 目次 Django 1.4.19 リリースノート バグ修正 前のトピ ... go 1.4.20 リリースノート 次のトピックへ Django 1.4.18 リリースノート 関連キーワード Django security release GZipMiddleware stream files リリースノート January fixes regression バグ 修正 now supports streaming responses part django views static 関連する ...
https://man.mtool.work/django/6.1/releases/1.4.19.html
Django オブジェクトのシリアライズ — Django 6.1 ドキュメント 11356
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django オブジェクトのシリアライズ ¶ Django のシリアライズフレームワークは、Django のモデルを他のフォーマットに「翻訳」する仕組みを提供します。通常、 ... したい場合に便利です。 with open ( "file.json" , "w" ) as out : json_serializer . serialize ( SomeModel . objects . all (), stream = out ) 注釈 get_serializer() を未知の フォーマット で呼び出すと、 django.core.serializers.SerializerDoesNotExist 例外が発 ... : fields = [ field . name for field in apps . get_model ( model ) . _meta . fields ] header = "," . join ( fields ) self . stream . write ( f "model, { header } \n " ) self . stream . write ( f " { dumped_object_str } \n " ) def getvalue ( self ): retu ... thon . Serializer , self ) . getvalue () class Deserializer ( serializers . python . Deserializer ): def __init__ ( self , stream_or_string , ** options ): if isinstance ( stream_or_string , bytes ): stream_or_string = stream_or_string . decode () if i ...
https://man.mtool.work/django/6.1/topics/serialization.html
Django オブジェクトのシリアライズ — Django 6.1 ドキュメント 11356
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django オブジェクトのシリアライズ ¶ Django のシリアライズフレームワークは、Django のモデルを他のフォーマットに「翻訳」する仕組みを提供します。通常、 ... したい場合に便利です。 with open ( "file.json" , "w" ) as out : json_serializer . serialize ( SomeModel . objects . all (), stream = out ) 注釈 get_serializer() を未知の フォーマット で呼び出すと、 django.core.serializers.SerializerDoesNotExist 例外が発 ... : fields = [ field . name for field in apps . get_model ( model ) . _meta . fields ] header = "," . join ( fields ) self . stream . write ( f "model, { header } \n " ) self . stream . write ( f " { dumped_object_str } \n " ) def getvalue ( self ): retu ... thon . Serializer , self ) . getvalue () class Deserializer ( serializers . python . Deserializer ): def __init__ ( self , stream_or_string , ** options ): if isinstance ( stream_or_string , bytes ): stream_or_string = stream_or_string . decode () if i ...
https://man.mtool.work/django/6.1/topics/serialization.html
CSVを出力する — Django 6.1 ドキュメント 8220
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » CSVを出力する ¶ このドキュメントでは、Django のビューを使って動的に CSV (Comma Separated Values) を出力する方法を説明しています。そのためには、Pytho ... ズの大きな 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 ( ... self , 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 ...
https://man.mtool.work/django/6.1/howto/outputting-csv.html
LayerMapping データインポートユーティリティ — Django 6.1 ドキュメント 8220
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » LayerMapping データインポートユーティリティ ¶ LayerMapping クラスは、ベクトル空間データファイル (例: shapefile) の内容を GeoDjango モデルにマッピング ... ーワード引数 ¶ LayerMapping. save ( verbose = False , fid_range = False , step = False , progress = False , silent = False , stream = sys.stdout , strict = False ) [ソース] ¶ The save() method also accepts keywords. These keywords are used for controllin ... 間隔で発生します。たとえば、 step=1000 の場合、1,000個目のフィーチャー、2,000個目のフィーチャーなどでコミットが行われます。 stream Status information will be written to this file handle. Defaults to using sys.stdout , but any object with a write method ...
https://man.mtool.work/django/6.1/ref/contrib/gis/layermapping.html
CSVを出力する — Django 6.1 ドキュメント 8220
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » CSVを出力する ¶ このドキュメントでは、Django のビューを使って動的に CSV (Comma Separated Values) を出力する方法を説明しています。そのためには、Pytho ... ズの大きな 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 ( ... self , 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 ...
https://man.mtool.work/django/6.1/howto/outputting-csv.html
LayerMapping データインポートユーティリティ — Django 6.1 ドキュメント 8220
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » LayerMapping データインポートユーティリティ ¶ LayerMapping クラスは、ベクトル空間データファイル (例: shapefile) の内容を GeoDjango モデルにマッピング ... ーワード引数 ¶ LayerMapping. save ( verbose = False , fid_range = False , step = False , progress = False , silent = False , stream = sys.stdout , strict = False ) [ソース] ¶ The save() method also accepts keywords. These keywords are used for controllin ... 間隔で発生します。たとえば、 step=1000 の場合、1,000個目のフィーチャー、2,000個目のフィーチャーなどでコミットが行われます。 stream Status information will be written to this file handle. Defaults to using sys.stdout , but any object with a write method ...
https://man.mtool.work/django/6.1/ref/contrib/gis/layermapping.html
メールを送信する — Django 6.1 ドキュメント 8058
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » メールを送信する ¶ Django provides wrappers for Python's email and smtplib modules to simplify composing and sending email. Django's email framework ... ツは文字列であることが期待されます。バイナリデータはUTF-8でデコードされ、それが失敗した場合、MIMEタイプは application/octet-stream に変更され、データは変更されずに添付されます。 Or for attachments requiring additional headers or parameters, you can pass ... To use it, set BACKEND to "django.core.mail.backends.console.EmailBackend" . The console backend supports these OPTIONS : "stream" : a stream-like object to write to. Defaults to stdout . "fail_silently" : set to True to ignore all errors while writing ... the message to the stream, including errors serializing the message. (This option is available for backward compatibility but is not recommended.) こ ...
https://man.mtool.work/django/6.1/topics/email.html
メールを送信する — Django 6.1 ドキュメント 8058
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » メールを送信する ¶ Django provides wrappers for Python's email and smtplib modules to simplify composing and sending email. Django's email framework ... ツは文字列であることが期待されます。バイナリデータはUTF-8でデコードされ、それが失敗した場合、MIMEタイプは application/octet-stream に変更され、データは変更されずに添付されます。 Or for attachments requiring additional headers or parameters, you can pass ... To use it, set BACKEND to "django.core.mail.backends.console.EmailBackend" . The console backend supports these OPTIONS : "stream" : a stream-like object to write to. Defaults to stdout . "fail_silently" : set to True to ignore all errors while writing ... the message to the stream, including errors serializing the message. (This option is available for backward compatibility but is not recommended.) こ ...
https://man.mtool.work/django/6.1/topics/email.html
PREV 1 2 3 NEXT