... or a file during development and an SMTP server or email service provider in production. コードは django.core.mail モジュールにあります。 簡単な例 簡単なメール送信には se ... ERS setting isn't defined). Use the MAILERS setting to tell Django how to send email. For example, to send through an SMTP server running on the local machine: MAILERS = { "default" : { "BACKEND" : "django.core.mail.backends.smtp.EmailBackend" , "OPTIO ... , which sends using the standard SMTP protocol. This backend is useful for many production configurations, including SMTP servers in your own infrastructure and most commercial email service providers (ESPs). There are also third-party email backends ... ... デフォルトのログ記録条件の完全なセットは以下の通りです: DEBUG が True のとき: django ロガーは、 django ヒエラルキー ( django.server を除く) において、 INFO レベル以上のメッセージをコンソールに送信します。 DEBUG が False のとき: django ロガーは、 django ヒ ... エラルキー ( django.server を除く) において、 ERROR ないし CRITICAL レベルを AdminEmailHandler に送信します。 DEBUG の値にかかわらず: django.server ロ ... ガーは INFO レベル以上のメッセージをコンソールに送信します。 django.server を除く全てのロガーは、ルートの django ロガーまで、親に対してログを伝播させます。 console と mail_admins ハンドラは、上述の ... ... IS and Integrated Windows Authentication or Apache and mod_authnz_ldap , CAS , WebAuth , mod_auth_sspi , etc. When the web server takes care of authentication it typically provides the authenticated user as REMOTE_USER . In Django, this value is made a ... UserMiddleware must not be deployed in configurations where a client can supply the header. You must be sure that your web server or reverse proxy always sets or strips that header based on the appropriate authentication checks, never permitting an end ... d X-Auth_User (for example) both normalize to the HTTP_X_AUTH_USER key in request.META , you must also check that your web server doesn't allow a spoofed header using underscores in place of dashes. Under WSGI, this warning doesn't apply to RemoteUserM ... ... and Apache 2.4+ strip all headers containing underscores from incoming requests by default. Django's built-in development server now does the same. Django's development server is not recommended for production use, but matching the behavior of common ... production servers reduces the surface area for behavior changes during deployment. Mitigated possible XSS attack via user-supplied redirect ... evelopment aid. Now may be a good time to audit your project and serve your files in production using a real front-end web server if you are not doing so. バグ修正 To maintain compatibility with Python 2.5, Django's vendored version of six, django.util ... ... and Apache 2.4+ strip all headers containing underscores from incoming requests by default. Django's built-in development server now does the same. Django's development server is not recommended for production use, but matching the behavior of common ... production servers reduces the surface area for behavior changes during deployment. Mitigated possible XSS attack via user-supplied redirect ... evelopment aid. Now may be a good time to audit your project and serve your files in production using a real front-end web server if you are not doing so. Database denial-of-service with ModelMultipleChoiceField Given a form that uses ModelMultipleChoi ... ... PostgreSQL prevents running Django with PgBouncer in transaction pooling mode. To reallow that, use the DISABLE_SERVER_SIDE_CURSORS setting in DATABASES . See トランザクションプールとサーバーサイドカーソル for more discussion. バグ修正 Made ... ... and Apache 2.4+ strip all headers containing underscores from incoming requests by default. Django's built-in development server now does the same. Django's development server is not recommended for production use, but matching the behavior of common ... production servers reduces the surface area for behavior changes during deployment. Mitigated possible XSS attack via user-supplied redirect ... evelopment aid. Now may be a good time to audit your project and serve your files in production using a real front-end web server if you are not doing so. Database denial-of-service with ModelMultipleChoiceField Given a form that uses ModelMultipleChoi ... ... ュール内)、404ビューは使用されず、代わりに URLconf がデバッグ情報と共に表示されます。 500(サーバーエラー)ビュー defaults. server_error ( request , template_name = '500.html' ) 同様に、Django はビューコードで実行時エラーが発生した場合、特別なケースの動 ... 作を実行します。ビューで例外が発生した場合、 Django はデフォルトで django.views.defaults.server_error というビューを呼び出します。このビューは "Server Error" というメッセージを表示するか、ルートテンプレートディレクトリ ... ting the session data). If not specifically handled, Django will consider the current request a 'bad request' instead of a server error, and handle it with bad_request . また、 bad_request ビューは DEBUG が False のときだけ使用されます。 ... ... w BaseCommand.requires_migrations_checks attribute may be set to True if you want your command to print a warning, like runserver does, if the set of migrations on disk don't match the migrations in the database. To assist with testing, call_command() ... 。これに伴い、Django 1.10 は PostgreSQL 9.2 を公式にサポートする最低のバージョンに変更しました。 logging モジュール経由の runserver の出力 runserver コマンドによる request および response のハンドリングが sys.stderr の代わりに django.server logger に送ら ... の出力を表示するには、次のようにして適切な logging 設定を追加する必要があります。 LOGGING = { # ... "formatters" : { "django.server" : { "()" : "django.utils.log.ServerFormatter" , "format" : "[ %(server_time)s ] %(message)s " , } }, "handlers" : { "djan ... ... , such a header could be spoofed by supplying a header named with underscores. Under WSGI, it is the responsibility of the server or proxy to avoid ambiguous mappings. (Django's runserver was patched in CVE 2015-0219 .) But under ASGI, there is not the ... rs off; ). Headers containing underscores are now ignored by ASGIRequest , matching the behavior of Daphne , the reference server for ASGI. This issue has severity "low" according to the Django security policy . CVE-2026-4277: Privilege abuse in Generi ... 2026年10月08日