... go 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" , "OPTIONS" : { "host" : "localhost" , }, }, } Django abstracts the email ... sending process into an "email backend" class. メールのバックエンド lists the email backends that come with Django. The example above uses Django's SMTP email ba ... ckend , 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 ... ... structure. Task definition The task decorator task ( * , priority = 0 , queue_name = 'default' , backend = 'default' , takes_context = False , ** kwargs ) [ソース] The @task decorator defines a Task instance. All keyword argume ... nts are passed directly to the backend's task_class (which defaults to Task ). The following standard arguments are supported: priority : Sets the priority of th ... e Task . Defaults to 0. queue_name : Sets the queue_name of the Task . Defaults to "default" . backend : Sets the backend of the Task . Defaults to "default" . takes_context : Controls whether the Task function accepts a Task ... ... eding updates. 注釈 Running tests may not identify all relevant deprecations. Test suites often use a non-functional email backend (such as the memory backend that Django substitutes during tests ), so can miss deprecation warnings that are only issued ... hese specific features: Replacing get_connection() and connection arguments Replacing fail_silently Migrating custom email backends Replacing auth_user and auth_password Updating AdminEmailHandler email_backend Ignoring transient failures in error repor ... ting バージョン 6.1 で非推奨: The following settings and functions will be removed in Django 2028: EMAIL_BACKEND , EMAIL_FILE_PATH , EMAIL_HOST , EMAIL_HOST_PASSWORD , EMAIL_HOST_USER , EMAIL_PORT , EMAIL_SSL_CERTFILE , EMAIL_SSL_KEYFI ... ... tual execution must be handled by infrastructure outside Django, such as a separate process or service. Given that, a task backend capable of executing tasks on that service should be evaluated and configured. Background Task fundamentals When work need ... he status and result back to the Queue Store. These workers run outside the request-response lifecycle. Configuring a Task backend The Task backend determines how and where Tasks are stored for execution and how they are executed. Different Task backend ... nd configuration options, which may impact the performance and reliability of your application. Django comes with built-in backends , but these are for development and testing only. Django が扱うのはタスクの定義、検証、キューへの挿入、結果の処理であり、 ... ... id, you will need to update your code if you were relying on a deepcopy. Do this by using copy.deepcopy directly. Database backend functions Database backend functions have been renamed Almost all of the database backend-level functions have been rename ... u'll need to change your code if you're using any of these functions, all of which are in django.db : Old (0.96) New (1.0) backend.get_autoinc_sql connection.ops.autoinc_sql backend.get_date_extract_sql connection.ops.date_extract_sql backend.get_date_t ... runc_sql connection.ops.date_trunc_sql backend.get_datetime_cast_sql connection.ops.datetime_cast_sql backend.get_deferrable_sql connection.ops.deferrable_sql backend.ge ... ... 。詳しくは see ミドルウェア (Middleware) を参照。また PREPEND_WWW も参照してください。 CACHES デフォルト値: { "default" : { "BACKEND" : "django.core.cache.backends.locmem.LocMemCache" , } } Django で使用されるすべてのキャッシュの設定を含む辞書です。これは ... または複数のキャッシュを定義する必要がある場合は、他のオプションが必要になります。以下のキャッシュオプションが利用可能です。 BACKEND デフォルト値: '' (空文字列) 使用するキャッシュ用バックエンド。ビルトインのキャッシュ用バックエンドには、次のものがあります ... 。 'django.core.cache.backends.db.DatabaseCache' 'django.core.cache.backends.dummy.DummyCache' 'django.core.cache.backends.filebased.FileBasedCache' 'dj ... ... ons , permissions for anonymous users , and more flexible username requirements . Customization of email sending via email backends . New "smart" if template tag which supports comparison operators. These are just the highlights; full details and a comp ... sions at the per-object level has been added. Although there is no implementation of this in core, a custom authentication backend can provide this implementation and it will be used by django.contrib.auth.models.User . See the authentication docs for m ... ore information. Permissions for anonymous users If you provide a custom auth backend with supports_anonymous_user set to True , AnonymousUser will check the backend for permissions, just like User already di ... ... インディングはいくつかありますが、 Django がサポートしているのは pylibmc と pymemcache です。 Django で Memcached を使用する BACKEND を django.core.cache.backends.memcached.PyMemcacheCache または django.core.cache.backends.memcached.PyLibMCCache (選択した ... は localhost (127.0.0.1) port 11211 で起動していて、 pymemcache バインディングを使用しています。 CACHES = { "default" : { "BACKEND" : "django.core.cache.backends.memcached.PyMemcacheCache" , "LOCATION" : "127.0.0.1:11211" , } } 次の例では、Memcached はロ ... ファイル /tmp/memcached.sock 経由で利用可能であり、 pymemcache バインディングを使用しています。 CACHES = { "default" : { "BACKEND" : "django.core.cache.backends.memcached.PyMemcacheCache" , "LOCATION" : "unix:/tmp/memcached.sock" , } } Memcached の優れ ... ... oes not trigger the pre_delete or post_delete signals. Mailers The new MAILERS setting supports configuring multiple email backends with different options, similar to existing mechanisms for CACHES , DATABASES , STORAGES , and TASKS : MAILERS = { "defau ... lt" : { "BACKEND" : "django.core.mail.backends.smtp.EmailBackend" , "OPTIONS" : { "host" : "smtp.example.com" , "use_tls" : True }, }, "mar ... keting" : { "BACKEND" : "example.third.party.EmailBackend" , "OPTIONS" : { "region" : "africa-1" }, }, } You can select a mailer with the new u ... ... Selenium . The new django.test.LiveServerTestCase base class lets you test the interactions between your site's front and back ends more comprehensively. See the documentation for more details and concrete examples. Updated default project layout and m ... common uses of signing in web applications. See the cryptographic signing docs for more information. Cookie-based session backend Django 1.4 introduces a cookie-based session backend that uses the tools for cryptographic signing to store the session da ... data stored in the session but cannot change it. Please read the documentation for further clarification before using this backend. See the cookie-based session backend docs for more information. New form wizard The previous FormWizard from django.contr ... 2026年10月08日