... go 2028; see Migrating email to mailers . To ease the transition, mail.mailers["default"] works with either MAILERS or the deprecated EMAIL_BACKEND setting defined. The deprecated get_connection() function will also return an instance of the default mailer ... nd get_redirect_url() (from django.contrib.auth.views.RedirectURLMixin ) now accept an optional request argument. Features deprecated in 6.1 E メール The EMAIL_BACKEND , EMAIL_FILE_PATH , EMAIL_HOST , EMAIL_HOST_PASSWORD , EMAIL_HOST_USER , EMAIL_PORT , EM ... AIL_USE_TLS , EMAIL_USE_SSL , EMAIL_SSL_CERTFILE , EMAIL_SSL_KEYFILE , and EMAIL_TIMEOUT settings are deprecated. Replace them with a MAILERS configuration dictionary as described in Migrating email to mailers . mail.get_connection() i ... ... roduction database. Migrations are covered in their own documentation , but a few of the key features are: syncdb has been deprecated and replaced by migrate . Don't worry - calls to syncdb will still work as before. A new makemigrations command provides a ... odels and make migrations for them. django.db.models.signals.pre_syncdb and django.db.models.signals.post_syncdb have been deprecated, to be replaced by pre_migrate and post_migrate respectively. These new signals have slightly different arguments. Check t ... migrate , but still performs the same function. Routers with allow_syncdb methods will still work, but that method name is deprecated and you should change it as soon as possible (nothing more than renaming is required). initial_data fixtures are no longer ... ... d in production to catch those deprecations. Or carefully review your code (including third-party packages) for use of any deprecated email features. Other updates are needed only for projects or reusable Django libraries that use these specific features: ... * settings: MAILERS = { "default" : { "BACKEND" : ... , # value of EMAIL_BACKEND setting "OPTIONS" : { # values from other deprecated EMAIL_* settings ... , }, }, } For example, to update these settings: EMAIL_BACKEND = "django.core.mail.backends.smtp.Emai ... efaults to 587 with use_tls True. "username" : "user@example.net" , "password" : "password" , }, }, } The complete list of deprecated EMAIL_* settings and where they should be moved in a MAILERS configuration is: EMAIL_BACKEND becomes "BACKEND" . If your s ... ... ate and apply a database migration. For now, the old fields and transforms are left as a reference to the new ones and are deprecated as of this release . DEFAULT_HASHING_ALGORITHM settings The new DEFAULT_HASHING_ALGORITHM transitional setting allows spec ... Django 3.1.1+. Once the transition to 3.1 is complete you can stop overriding DEFAULT_HASHING_ALGORITHM . This setting is deprecated as of this release, because support for tokens, cookies, sessions, and signatures that use SHA-1 algorithm will be removed ... IMEOUT setting allows defining the number of seconds a password reset link is valid for. This is encouraged instead of the deprecated PASSWORD_RESET_TIMEOUT_DAYS setting, which will be removed in Django 4.0. The password reset mechanism now uses the SHA-25 ... ... bility with the old API endpoint where possible. However, API endpoints that aren't part of the new official API have been deprecated and will eventually be removed. Multiple template engines Django 1.8 defines a stable API for integrating template backend ... Oracle Earlier versions of Django granted the CONNECT and RESOURCE roles to the test user on Oracle. These roles have been deprecated, so Django 1.8 uses the specific underlying privileges instead. This changes the privileges required of the main user for ... jects (): to_model = getattr ( relation , "related_model" , relation . model ) Also note that get_all_related_objects() is deprecated in 1.8. データベースバックエンド API The following changes to the database backend API are documented to assist those writ ... ... s.DjangoDivFormRenderer" Once the <div> output style is the default, from Django 5.0, these transitional renderers will be deprecated, for removal in Django 6.0. The FORM_RENDERER declaration can be removed at that time. If the new <div> output style is no ... マンドは最新の .po ファイルを変更しなくなりました。古いバージョンでは POT-Creation-Date は常に更新されていました。 Features deprecated in 4.1 Log out via GET Logging out via GET requests to the built-in logout view is deprecated. Use POST requests instead. ... r ; padding : 0 ; text-decoration : underline ; } その他 The context for sitemap index templates of a flat list of URLs is deprecated. Custom sitemap index templates should be updated for the adjusted context variables , expecting a list of objects with lo ... ... supports the same API as the previous SafeMIMEText and SafeMIMEMultipart return types, but is not an instance of those now-deprecated classes. マイナーな機能 django.contrib.admin The Font Awesome Free icon set (version 6.7.2) is now used for the admin inte ... e than once when saving model instances, so custom implementations should be idempotent and free of side effects. Features deprecated in 6.0 Positional arguments in django.core.mail APIs django.core.mail APIs now require keyword arguments for less commonly ... ch may still be passed either as positional or keyword arguments. その他 BaseDatabaseCreation.create_test_db(serialize) is deprecated. Use serialize_db_to_string() instead. The PostgreSQL StringAgg class is deprecated in favor of the generally available St ... ... 3.2 allowed the use of non- pytz time zones. Django 4.0 makes zoneinfo the default implementation. Support for pytz is now deprecated and will be removed in Django 5.0. zoneinfo is part of the Python standard library from Python 3.9. The backports.zoneinfo ... your code, since pytz and zoneinfo are not entirely equivalent. このような監査にかかる時間を確保するために、移行期間の USE_DEPRECATED_PYTZ 設定は、4.x リリースサイクル中に pytz の継続的な使用を許可します。この設定は Django 5.0 で削除される予定です。 In add ... guide showing how to move to the new zoneinfo APIs. 段階的なアップデートパスが必要な場合は、 pytz_deprecation_shim と USE_DEPRECATED_PYTZ 移行用設定の使用が推奨されます。 Functional unique constraints The new *expressions positional argument of UniqueCons ... ... ngo 6.1: In earlier releases, Django defaulted to sending email through an SMTP server running on localhost, using the now-deprecated EMAIL_BACKEND and related settings. バージョン 6.1 で非推奨: Until Django 2028, if the MAILERS setting is not defined then ... や 1 になることもあります)。 バージョン 6.0 で非推奨: Passing fail_silently and later parameters as positional arguments is deprecated. バージョン 6.1 で非推奨: The fail_silently , auth_user , auth_password , and connection arguments are deprecated. In most ... セージ送信に成功した数です。 バージョン 6.0 で非推奨: Passing fail_silently and later parameters as positional arguments is deprecated. バージョン 6.1 で非推奨: The fail_silently , auth_user , auth_password , and connection arguments are deprecated. In most ... ... ngines DEP 201: Simplified routing syntax Deprecating a feature There are a couple of reasons that code in Django might be deprecated: If a feature has been improved or modified in a backwards-incompatible way, the old feature or behavior will be deprecate ... . When Django no longer needs to support the older version of Python that doesn't include the library, the library will be deprecated in Django. As the deprecation policy describes, the first release of Django that deprecates a feature ( A.B ) should raise ... a RemovedInDjangoXXXXWarning (where XXXX is the Django version 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 suit ... 2026年10月08日