... re, Millimeter um Micrometer, Micrometre british_ft British foot (Sears 1922) british_yd British yard (Sears 1922) british_chain_sears British chain (Sears 1922) indian_yd Indian yard, Yard (Indian) sears_yd Yard (Sears) clarke_ft Clarke's Foot chain ... Chain chain_benoit Chain (Benoit) chain_sears Chain (Sears) british_chain_benoit British chain (Benoit 1895 B) british_chain_sears_tru ... ncated British chain (Sears 1922 truncated) gold_coast_ft Gold Coast foot link Link link_benoit Link (Benoit) link_sears Link (Sears) clarke_li ... ... えると、クライアントはすべてのリダイレクトを辿り、途中の URL とステータスコードのタプルが、レスポンスオブジェクトの redirect_chain 属性に追加されてゆきます。 たとえば、URL /redirect_me/ が /next/ にリダイレクトし、それがさらに /final/ にリダイレクトする ... ような場合には、 redirect_chain は次のような値になります。 >>> response = c . get ( "/redirect_me/" , follow = True ) >>> response . redirect_chain [('htt ... えると、クライアントはすべてのリダイレクトを辿り、途中の URL とステータスコードのタプルが、レスポンスオブジェクトの redirect_chain 属性に追加されてゆきます。 secure を True に設定すると、クライアントは HTTPS リクエストをエミュレートします。 head ( path ... ... されている以下の2つの例外が発生する可能性があります: exception TemplateDoesNotExist ( msg , tried = None , backend = None , chain = None ) [ソース] この例外はテンプレートが見つからない場合に発生します。デバッグページの template postmortem に入力するため ... ルのリストです。ここで origin は origin-like オブジェクトで、 status はテンプレートが見つからなかった理由を表す文字列です。 chain テンプレートを読み込もうとしたときに発生した例外 TemplateDoesNotExist の中間値のリストです。これは get_template() のような ... ... /contrib/admin/example.py # future from __future__ import annotations # standard library import json from itertools import chain # third-party import bcrypt # Django from django.http import Http404 from django.http.response import ( Http404 , HttpResp ... ... [key] . The old way, which treats request.context as a list of contexts, one for each rendered template in the inheritance chain, is still available if you need it. New admin features Django 1.1 adds a couple of nifty new features to Django's admin in ... ... nnection requires client certificate authentication, use these options to specify the paths to a PEM-formatted certificate chain file and private key file. (The key file can be omitted if the certificate file includes the private key.) These options a ... connection. Refer to the documentation of Python's ssl.SSLContext.wrap_socket() method for details on how the certificate chain file and private key file are handled. "timeout" : the timeout (in seconds) for connecting to the SMTP server and other bl ... ... し、 GeoDjango 固有のルックアップ型は空間フィールドでのみ利用可能です。 Filters on 'normal' fields (e.g. CharField ) may be chained with those on geographic fields. Geographic lookups accept geometry and raster input on both sides, and input types can ... sCity . objects . filter ( point__distance_lte = ( pnt , 7000 )) # Find all Cities within 7 km, > 20 miles away, and > 100 chains away (an obscure unit) >>> qs = SouthTexasCity . objects . filter ( point__distance_lte = ( pnt , D ( km = 7 ))) >>> qs = ... int__distance_gte = ( pnt , D ( mi = 20 ))) >>> qs = SouthTexasCity . objects . filter ( point__distance_gte = ( pnt , D ( chain = 100 ))) ラスタークエリは、ジオメトリフィールド "point" をラスターフィールドに置き換えるか、"pnt" オブジェクトをラスターオ ... ... ained lookups spanning multi-valued relations, they didn't always reuse the same relations as other lookups along the same chain. This was changed, and now F() expressions will always use the same relations as other lookups within the same filter() ca ... ... he "lazy" behavior of the escape filter (where it would always be applied as the last filter no matter where in the filter chain it appeared) is deprecated. The filter will change to immediately apply conditional_escape() in Django 2.0. Manager.use_fo ... ... iles storage if a reference loop exists (e.g. 'foo.css' references 'bar.css' which itself references 'foo.css' ) or if the chain of files referencing other files is too deep to resolve in several passes. In the latter case, increase the number of pass ... 2026年10月08日