... llows the use case of binding to a specific port following the bind to port zero change in Django 1.11. バグ修正 Added detection for GDAL 2.1 and 2.0, and removed detectio ... n for unsupported versions 1.7 and 1.8 ( #28181 ). Changed contrib.gis to raise ImproperlyConfigured rather than GDALException if gdal isn ... ... ends Replacing auth_user and auth_password Updating AdminEmailHandler email_backend Ignoring transient failures in error reporting バージョン 6.1 で非推奨: The following settings and functions will be removed in Django 2028: EMAIL_BACKEND , EMAIL_FIL ... E_PATH , EMAIL_HOST , EMAIL_HOST_PASSWORD , EMAIL_HOST_USER , EMAIL_PORT , EMAIL_SSL_CERTFILE , EMAIL_SSL_KEYFILE , EMAIL_TIMEOUT , EMAIL_USE_SSL , EMAIL_USE_TLS mail.get_connection() and the con ... : EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" EMAIL_HOST = "mail.example.net" EMAIL_USE_TLS = True EMAIL_PORT = 587 EMAIL_HOST_USER = "user@example.net" EMAIL_HOST_PASSWORD = "password" use: MAILERS = { "default" : { "BACKEND" : "dj ... ... quired for a GeoDjango installation depends on the spatial database used. The following lists the library requirements, supported versions, and any notes for each of the supported database backends: データベース ライブラリの要件 サポートされるバージョ ... , GDAL, PROJ, PostGIS 15+ PostGIS が必要です。 MySQL GEOS, GDAL 8.4+ 機能制限があります 。 Oracle GEOS, GDAL 19+ XE not supported. SQLite GEOS, GDAL, PROJ, SpatiaLite 3.37.0+ Requires SpatiaLite 4.3+ PostgreSQL/PostGIS/GEOS/GDAL の可能な組み合わせにつ ... s to be included in the LD_LIBRARY_PATH variable. For example, the user could place the following in their bash profile: export LD_LIBRARY_PATH = /usr/local/lib システムライブラリのパスを設定する On GNU/Linux systems, there is typically a file in /et ... ... ベースを正しく設定する方法については、以下のデータベース固有のノートを確認してください。 PostgreSQL に関するノート Django supports PostgreSQL 15 and higher. psycopg 3.1.12+ or psycopg2 2.9.9+ is required, though the latest psycopg 3.1.12+ is recommende ... ce" : "my_service" , "passfile" : ".my_pgpass" , }, } } .pg_service.conf [my_service] host=localhost user=USER dbname=NAME port=5432 .my_pgpass localhost:5432:NAME:USER:PASSWORD PostgreSQLバックエンドは OPTIONS の内容をキーワード引数として接続コンスト ... 場合は、 DATABASES 内のデータベース設定の OPTIONS 部分に指定してください。 from django.db.backends.postgresql.psycopg_any import IsolationLevel DATABASES = { # ... "OPTIONS" : { "isolation_level" : IsolationLevel . SERIALIZABLE , }, } 注釈 より高い分離 ... ... Python を使用することを 強く推奨 し、公式には最終リリースしかサポートしません。 The Django 1.11.x series is the last to support Python 2. The next major release, Django 2.0, will only support Python 3.4+. 廃止予定警告はデフォルトでは表示されなくなりま ... ee index, as if you used db_index on the model field or index_together on the model Meta class. It can be subclassed to support different index types, such as GinIndex . It also allows defining the order (ASC/DESC) for the columns of the index. テンプ ... eometry.from_gml() と OGRGeometry.from_gml() メソッドによって、GML から幾何学的配置を作成できるようになりました。 Added support for the dwithin lookup on SpatiaLite. The Area function, Distance function, and distance lookups now work with geodetic co ... ... send_mail() を使用します。たとえば、プレーンテキストのメッセージを送信するには、次のようにします。 from django.core.mail import send_mail send_mail ( "Subject here" , "Here is the message." , "from@example.com" , [ "to@example.com" ], ) When addition ... ain text versions with a specific template and custom headers, you can use the following approach: from django.core.mail import EmailMultiAlternatives from django.template.loader import render_to_string # First, render the plain text content. text_co ... l notifications and bulk marketing email, etc. The MAILERS setting can define multiple mail configurations. For example: import os MAILERS = { "default" : { "BACKEND" : "django.core.mail.backends.smtp.EmailBackend" , "OPTIONS" : { "host" : "smtp.exam ... ... ends.postgresql" , "NAME" : "mydatabase" , "USER" : "mydatabaseuser" , "PASSWORD" : "mypassword" , "HOST" : "127.0.0.1" , "PORT" : "5432" , } } より複雑な設定に必要な次の内部オプションが利用可能です: ATOMIC_REQUESTS デフォルト値: False これを True に ... 照してください。 PASSWORD デフォルト値: '' (空文字列) データベースに接続する際に使用するパスワード。SQLiteでは使用しません。 PORT デフォルト値: '' (空文字列) データベースに接続する際に使用するポート。空の文字列はデフォルトポートを意味します。SQLiteでは ... esponse オブジェクトで使用するデフォルトの文字セット。 Content-Type ヘッダを構築する際に使用されます。 DEFAULT_EXCEPTION_REPORTER デフォルト値: ' django.views.debug.ExceptionReporter ' まだ HttpRequest インスタンスに割り当てられていない場合に使用され ... ... anged. AbstractBaseUser and BaseUserManager were moved to a new django.contrib.auth.base_user module so that they can be imported without including django.contrib.auth in INSTALLED_APPS (doing so raised a deprecation warning in older versions and is ... no longer supported in Django 1.9). The permission argument of permission_required() accepts all kinds of iterables, not only list and tuple ... 使ったセッションを拡張する を読んでください。 django.contrib.sites get_current_site() が新たに request.get_host() が domain:port という形式 (例: example.com:80 ) の値を返す場合でもハンドリングできるようになりました。host がデータベースレコードとマッチ ... ... または django.core.cache.backends.memcached.PyLibMCCache (選択した memcached バインディングによる) に設定する LOCATION を ip:port の値 (ここで、 ip は Memcached デーモンの IP アドレス、 port は Memcached が起動しているポート)、または、 unix:path の値に ... 設定する (ここで、 path は Memcached Unix socket ファイルへのパス)。 次の例では、Memcached は localhost (127.0.0.1) port 11211 で起動していて、 pymemcache バインディングを使用しています。 CACHES = { "default" : { "BACKEND" : "django.core.cache ... ched.PyMemcacheCache" , "LOCATION" : [ "172.19.26.240:11211" , "172.19.26.242:11211" , ], } } 以下の例では、172.19.26.240 (port 11211)、172.19.26.242 (port 11212)、172.19.26.244 (port 11213) の IP アドレスで動作する Memcached インスタンスでキャッシュ ... ... 証されたユーザー(もしあれば)。 REQUEST_METHOD -- "GET" や "POST" といったです。 SERVER_NAME -- サーバのホスト名です。 SERVER_PORT -- (文字列としての) サーバのポートです。 上記の CONTENT_LENGTH と CONTENT_TYPE を除き、リクエストの HTTP ヘッダーは、すべて ... attribute to use a custom multipart parser, either via middleware or directly in views: from django.http.multipartparser import MultiPartParser class CustomMultiPartParser ( MultiPartParser ): def parse ( self ): post = QueryDict ( mutable = True ) f ... とで、それまでにミドルウェアで行われた変更を取り消し、元の ROOT_URLCONF を使用するようにできます。 HttpRequest. exception_reporter_filter これは、現在のリクエストに対して DEFAULT_EXCEPTION_REPORTER_FILTER の代わりに使用されます。詳細については、 カスタ ... 2026年10月08日