... ts of problems, and in the other we've chosen to take further steps to tighten up Django's code in response to independent discovery of potential problems from multiple sources. Host header poisoning Several earlier Django security releases focused on the ... ... ts of problems, and in the other we've chosen to take further steps to tighten up Django's code in response to independent discovery of potential problems from multiple sources. Host header poisoning Several earlier Django security releases focused on the ... ... の最新リリースのみを公式にサポートし、最新リリースを使用することを 強く推奨 します。 Django 3.2 の新機能 Automatic AppConfig discovery Most pluggable applications define an AppConfig subclass in an apps.py submodule. Many define a default_app_config variabl ... ormer style, with the intent to switch the ecosystem to the latter, but the switch didn't happen. With automatic AppConfig discovery, default_app_config is no longer needed. As a consequence, it's deprecated. See アプリケーションを設定する for full detail ... ng migrations. The default_app_config application configuration variable is deprecated, due to the now automatic AppConfig discovery. See Django 3.2 の新機能 for more details. Automatically calling repr() on a queryset in TransactionTestCase.assertQueryse ... ... ach request. For backwards compatibility, this feature is disabled by default. See 持続的 (persistent) な接続 for details. Discovery of tests in any test module Django 1.6 ships with a new test runner that allows more flexibility in the location of tests. ... ests.py modules of a Python package in INSTALLED_APPS . The new runner ( django.test.runner.DiscoverRunner ) uses the test discovery features built into unittest2 (the version of unittest in the Python 2.7+ standard library, and bundled with Django). With ... test discovery, tests can be located in any module whose name matches the pattern test*.py . In addition, the test labels provided to ./m ... ... テストが書けたら、プロジェクトの manage.py ユーティリティの test コマンドでテストが実行できます。 $ ./manage.py test Test discovery is based on the unittest module's built-in test discovery . By default, this will discover tests in any file named test*.p ... ... zone information. Template tag modules are imported when templates are configured The DjangoTemplates backend now performs discovery on installed template tag modules when instantiated. This update enables libraries to be provided explicitly via the 'libr ... zy_relation() is deprecated. The django.contrib.auth.tests.utils.skipIfCustomUser() decorator is deprecated. With the test discovery changes in Django 1.6, the tests for django.contrib apps are no longer run as part of the user's project. Therefore, the @ ... ... that comes first in INSTALLED_APPS . Previous versions loaded the command from the application that came last. This brings discovery of management commands in line with other parts of Django that rely on the order of INSTALLED_APPS , such as static files, ... 2026年10月08日