... sion where the feature will be removed) when the deprecated feature is invoked. Assuming we have good test coverage, these warnings are converted to errors when running the test suite with warnings enabled: python -Wa runtests.py . Thus, when adding a Re ... movedInDjangoXXXXWarning you need to eliminate or silence any warnings generated when running the tests. The first step is to remove any use of the deprecated behavior by Django itself. Next yo ... u can silence warnings in tests that actually test the deprecated behavior by using the ignore_warnings decorator, either at the test or class le ... ... verify their compatibility with MAILERS before making other changes. Update email-related settings . Run with deprecation warnings enabled (see 廃止予定警告を解決する ) to identify other code needing updates. 注釈 Running tests may not identify all rele ... a non-functional email backend (such as the memory backend that Django substitutes during tests ), so can miss deprecation warnings that are only issued from the production email configuration. Consider running with deprecation warnings enabled in produc ... ings have been upgraded to use MAILERS . (If they use any deprecated mail features, those will of course cause deprecation warnings.) There are two deprecated features that are not supported when MAILERS is defined in a project's settings: Trying to acce ... ... ... ure is deprecated in feature release A.x , it will continue to work in all A.x versions (for all versions of x ) but raise warnings. Deprecated features will be removed in the B.0 release, or B.1 for features deprecated in the last A.x feature release to ... is deprecated in feature release YYYY , it will continue to work in the following feature release, YYYY+1 , while raising warnings. The feature will be removed in YYYY+2 . For example, if a feature is deprecated in Django 2028: Django 2028 will contain ... 030Warning . Django 2029 will continue to contain the deprecated feature. Django 2030 will remove the feature. Deprecation warnings are silent by default. You can turn on display of these warnings with the python -Wd option. 関連情報として、 Deprecating ... ... er Django 1.5, upgrading to 1.5.1 should fix those issues. Django 1.5.1 also includes a couple smaller fixes: Module-level warnings emitted during tests are no longer silently hidden ( #18985 ). Prevented filtering on password hashes in the user admin ( ... ... ... cleanup.py script will be removed. The depth keyword argument will be removed from select_related() . The undocumented get_warnings_state() / restore_warnings_state() functions from django.test.utils and the save_warnings_state() / restore_warnings_state ... () django.test.*TestCase methods are deprecated. Use the warnings.catch_warnings context manager available starting with Python 2.6 instead. The undocumented check_for_test_cookie method i ... ... _field set to something other than the primary key ( #26373 ). Fixed a regression in CommonMiddleware that caused spurious warnings in logs on requests missing a trailing slash ( #26293 ). Restored the functionality of the admin's raw_id_fields in list_e ... ... 6.0 that could be problematic when overriding the pagination block ( #37029 ). Fixed a bug in Django 6.0 where deprecation warnings incorrectly skipped lines from third-party packages prefixed with "django" ( #37067 ). ... ... ion to learn about upgrade paths for deprecated features or about minor backward-incompatible changes. Resolve deprecation warnings: Run your tests with deprecation warnings enabled to become aware of required follow-up actions: $ python -Wa manage.py te ... 2026年10月08日