... o from django.http import FileResponse from reportlab.pdfgen import canvas def some_view ( request ): # Create a file-like buffer to receive PDF data. buffer = io . BytesIO () # Create the PDF object, using the buffer as its "file." p = canvas . Canvas ... ( buffer ) # Draw things on the PDF. Here's where the PDF generation happens. # See the ReportLab documentation for the full list o ... () p . save () # FileResponse sets the Content-Disposition header so that browsers # present the option to save the file. buffer . seek ( 0 ) return FileResponse ( buffer , as_attachment = True , filename = "hello.pdf" ) コードとコメントが自分自身の意 ... ... red in Django's shared cache. This issue has severity "low" according to the Django security policy . CVE-2026-53877: Heap buffer over-read in GDALRaster When GDALRaster was instantiated with a bytes object representing a raster file, the vsi_buffer pr ... operty could over-read the allocated buffer by approximately 32 bytes. This could result in information disclosure of adjacent heap memory or, in rare cases, a segmen ... ... red in Django's shared cache. This issue has severity "low" according to the Django security policy . CVE-2026-53877: Heap buffer over-read in GDALRaster When GDALRaster was instantiated with a bytes object representing a raster file, the vsi_buffer pr ... operty could over-read the allocated buffer by approximately 32 bytes. This could result in information disclosure of adjacent heap memory or, in rare cases, a segmen ... ... he properties in this section export the GEOSGeometry object into a different. This output may be in the form of a string, buffer, or even another object. GEOSGeometry. ewkt Returns the "extended" Well-Known Text of the geometry. This representation is ... オブジェクトを返します。 GEOSGeometry. wkb Returns the WKB (Well-Known Binary) representation of this Geometry as a Python buffer. SRID value is not included, use the GEOSGeometry.ewkb property instead. GEOSGeometry. ewkb このジオメトリの EWKB 表現を P ... のジオメトリの DE-9IM 交差行列が T*F**F*** である場合に True を返します。 トポロジー的 (Topological) メソッド GEOSGeometry. buffer ( width , quadsegs = 8 ) このジオメトリからの距離が与えられた width 以下のすべての点を表す GEOSGeometry を返す。オプション ... ... od 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 sequenc ... in most spreadsheet # applications. rows = ([ "Row {} " . format ( idx ), str ( idx )] for idx in range ( 65536 )) pseudo_buffer = Echo () writer = csv . writer ( pseudo_buffer ) def stream_batched_rows (): for batch in batched ( rows , 100 ): yield " ... ... バグ修正 Fixed a bug in Django 3.1 where the output was hidden on a test error or failure when using test --pdb with the --buffer option ( #32560 ). ... ... peruser now gives a prompt to allow bypassing the AUTH_PASSWORD_VALIDATORS checks. django.contrib.gis The new GEOSGeometry.buffer_with_style() method is a version of buffer() that allows customizing the style of the buffer. OpenLayersWidget is now base ... ... は、与えられた geom_input パラメータから直接インスタンス化されます。このパラメータには、WKT、HEX、GeoJSON、WKB データを含む buffer 、または OGRGeomType オブジェクトを含む文字列を指定できます。これらのオブジェクトは Layer ( DataSource の一部) からベクトル ... WKB バッファのサイズを返します: >>> OGRGeometry ( "POINT(1 2)" ) . wkb_size 21 wkb [ソース] このジオメトリのWKB表現を含む buffer を返します。 wkt [ソース] このジオメトリの文字列表現を WKT 形式で返します。 ewkt [ソース] このジオメトリの EWKT 表現を返し ... . metadata = { "DEFAULT" : { "OWNER" : None , "VERSION" : "2.0" }} >>> rst . metadata {'DEFAULT': {'VERSION': '2.0'}} vsi_buffer [ソース] A bytes representation of this raster. Returns None for rasters that are not stored in GDAL's in-memory virtual f ... ... 80000000006 43.9579540000000009, 12.4505540000000003 43.9797209999999978, ... >>> sm . mpoly . wkb # WKB (as Python binary buffer) <read-only buffer for 0x1fe2c70, size -1, offset 0 at 0x2564c40> >>> sm . mpoly . geojson # GeoJSON '{ "type": "MultiPoly ... ... ata コマンドラインオプション --backwards sqlmigrate コマンドラインオプション --blank ogrinspect コマンドラインオプション --buffer test コマンドラインオプション --check makemigrations コマンドラインオプション migrate コマンドラインオプション optimizemig ... ラス) BtreeGistExtension (django.contrib.postgres.operations のクラス) BTreeIndex (django.contrib.postgres.indexes のクラス) buffer() (GEOSGeometry のメソッド) buffer_with_style() (GEOSGeometry のメソッド) build_absolute_uri() (HttpRequest のメソッド) bu ... 2026年10月08日