per page, with , order by , clip by
Results of 1 - 10 of about 61 for mode (0.003 sec.)
Fetch modes 16655
Fetch modes New in Django 6.1. When accessing model fields that were not loaded as part of the original query, Django will fetch that field's data from the database. You can customize the behavior of this fetching with a fetch mode , making ... it more efficient or even blocking it. Use QuerySet.fetch_mode() to set the fetch mode for model instances fetched by a QuerySet : from django.db import models books = Book . objects . ... fetch_mode ( models . FETCH_PEERS ) Fetch modes apply to: ForeignKey fields OneToOneField fields and their reverse accessors Fields d ... eferred with QuerySet.defer() or QuerySet.only() ジェネリックリレーション(汎用リレーション) Django copies the fetch mode of an instance to any related objects it fetches, so the mode applies to a whole tree of relationships, not just the top-l ...
https://man.mtool.work/django/6.1/topics/db/fetch-modes.html
ファイルストレージ API 9465
ファイルストレージ API デフォルトのストレージクラスの取得 Djangoでは、デフォルトストレージクラスにアクセスするための便利な方法を提供しています。 storages STORAGES で定義されたエイリアスを使用してストレージインスタンスを取得できる、辞書ライク ... のインスタンスです。 FileSystemStorage クラス class FileSystemStorage ( location = None , base_url = None , file_permissions_mode = None , directory_permissions_mode = None , allow_overwrite = False ) [ソース] FileSystemStorage クラスは、ローカルファイ ... base_url [ソース] この場所に保存されているファイルが提供される URL。デフォルトは MEDIA_URL 設定の値です。 file_permissions_mode [ソース] 保存される際にファイルが受け取るファイルシステムの権限。デフォルトは FILE_UPLOAD_PERMISSIONS です。 directory_per ... missions_mode [ソース] 保存された際にそのディレクトリが受け取るファイルシステムの権限。デフォルトは FILE_UPLOAD_DIRECTORY_PERMISSIONS で ...
https://man.mtool.work/django/6.1/ref/files/storage.html
モデルインスタンスリファレンス 9465
モデルインスタンスリファレンス このドキュメントでは、 Model API の詳細を説明しています。 モデル と データベースクエリ ガイドにある説明を前提としていますので、このドキュメントを読む前にこの 2 つを読んでおいた方がよいでしょう。 このリファレン ... オブジェクトを作成する モデルの新しいインスタンスを作成するには、他の Python クラスと同様にインスタンス化してください: class Model ( ** kwargs ) [ソース] The keyword arguments are the names of the fields you've defined on your model. Note that instanti ... ating a model in no way touches your database; for that, you need to save() . 注釈 You may be tempted to customize the model by overrid ... ng the __init__ method. If you do so, however, take care not to change the calling signature as any change may prevent the model instance from being saved. Additionally, referring to model fields within __init__ may potentially result in infinite rec ...
https://man.mtool.work/django/6.1/ref/models/instances.html
Django 6.1 release notes 9132
Django 6.1 release notes August 5, 2026 Welcome to Django 6.1! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 6.0 or earlier. We've begun the ... of 6.1.3). We highly recommend , and only officially support, the latest release of each series. What's new in Django 6.1 Model field fetch modes The on-demand fetching behavior of model fields is now configurable with fetch modes . These modes allo ... you to control how Django fetches data from the database when an unfetched field is accessed. Django provides three fetch modes: FETCH_ONE , the default, fetches the missing field for the current instance only. This mode represents Django's existing ... behavior. FETCH_PEERS fetches a missing field for all instances that came from the same QuerySet . This mode works like an on-demand prefetch_related() . It can reduce most cases of the "N+1 queries problem" to two queries without ...
https://man.mtool.work/django/6.1/releases/6.1.html
File オブジェクト 8885
File オブジェクト django.core.files モジュールとそのサブモジュールでは、Django の基本的なファイルハンドリングに関するビルトインクラスが定義されています。 File クラス class File ( file_object , name = None ) [ソース] The File class is a thin ... enever possible, use the attributes and methods of the subclass itself rather than those of the subclass's file attribute. mode ファイルの読み込み/書き込みのモードです。 open ( mode = None , * args , ** kwargs ) [ソース] Open or reopen the file (whic ... h also does File.seek(0) ). The mode argument allows the same values as Python's built-in open() . *args and **kwargs are passed after mode to Python's built-i ... n open() . ファイルを再オープンする際、 mode はファイルが元々開かれていたモードを上書きします。 None はオリジナルのモードで再オープンすることを意味します。 コンテキスト ...
https://man.mtool.work/django/6.1/ref/files/file.html
アクセシビリティ 8798
アクセシビリティ The Django project is committed to ensuring that websites built with Django are usable by everyone, including people with disabilities. Django's built-in components, such as the admin interface and default form rendering, s ... ceptable for content like images, maps, videos, and data tables, which require both dimensions to be usable. Forced-colors mode (for example Windows Contrast Themes). Note that this can be tested via the "high_contrast" mode in the screenshot tests . ... Common issues include: Over-reliance on color for meaning, which is lost in forced-colors mode. Use of !important or inline styles may break forced-colors mode. Recommended assistive technologies Where the UI changes ...
https://man.mtool.work/django/6.1/internals/contributing/accessibility.html
GeoIP2によるジオロケーション 8624
GeoIP2によるジオロケーション 概要 GeoIP2 オブジェクトは、 MaxMind geoip2 Python ライブラリ [ 1 ] のラッパーです。 IP ベースのジオロケーションを実行するために、 GeoIP2 オブジェクトには、バイナリ形式の GeoIP Country および City データセットと ... ることを前提としており、 GEOIP_PATH 設定を上書きします。 cache GeoIP データセットをオープンする際のキャッシュ設定。それぞれ MODE_AUTO , MODE_MMAP_EXT , MODE_MMAP , GEOIP_INDEX_CACHE MODE_MEMORY C API の設定に対応する (0, 1, 2, 4, 8) 整数を指定します。 ... デフォルトは 0 ( MODE_AUTO ) です。 country GeoIP 国データファイルの名前。デフォルトは GeoLite2-Country.mmdb です。このキーワードを設定すると GE ...
https://man.mtool.work/django/6.1/ref/contrib/gis/geoip2.html
Django 1.4 リリースノート 8552
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.3 or older versions. We've a ... users' local timezones for display. If you're upgrading an existing project to Django 1.4, switching to the timezone aware mode may take some care: the new mode disallows some rather sloppy behavior that used to be accepted. We encourage anyone who's ... e all sorts of subtle timezone-related bugs. In Django 1.4, you can now switch Django into a more correct, time-zone aware mode. In this mode, Django stores date and time information in UTC in the database, uses time-zone-aware datetime objects inter ... nd urls.py . For instance, with the following layout: manage.py mysite/ __init__.py settings.py urls.py myapp/ __init__.py models.py You could import mysite.settings , mysite.urls , and mysite.myapp , but not settings , urls , or myapp as top-level m ...
https://man.mtool.work/django/6.1/releases/1.4.html
Django 6.1.1 release notes 7885
Django 6.1.1 release notes September 2, 2026 Django 6.1.1 fixes one crash in Django 5.2 and several bugs in 6.1. バグ修正 Fixed a crash in Django 5.2 when combining distinct(*fields) with order_by() and values() and using two lookup paths r ... template literals containing two consecutive dots, such as {{ "a..b" }} ( #37257 ). Fixed a regression in Django 6.1 where ModelAdmin.list_display entries that traverse multiple relations using __ could crash or display incorrect values ( #37270 ). F ... bug in Django 6.1 where the fields.E323 system check did not detect mixed on_delete variants for auto-created intermediate models for ManyToManyField s ( #37254 ). Fixed a regression in Django 6.1 where custom querysets used with Prefetch for forward ... etrieving values on SQLite ( #37275 ). Fixed a regression in Django 6.1 that caused a crash when iterating a QuerySet of a model overriding Model.from_db() without the new fetch_mode keyword argument. Such overrides now work again, but are deprecated ...
https://man.mtool.work/django/6.1/releases/6.1.1.html
非同期サポート 7639
非同期サポート Django has support for writing asynchronous ("async") views, along with an entirely async-enabled request stack if you are running under ASGI . Async views will still work under WSGI, but with a small per-request adaptation c ... た非同期版があります。 async for は ( values() と values_list() を含む) すべての QuerySet でサポートされている Asynchronous model methods that use the database are also supported: async def make_book ( * args , ** kwargs ): book = Book ( ... ) await b ... ことをおすすめします。 Persistent database connections , set via the CONN_MAX_AGE setting, should also be disabled in async mode. Instead, use your database backend's built-in connection pooling if available, or investigate a third-party connection po ... n a single process share that pool, so size it to the target in-flight query concurrency. パフォーマンス When running in a mode that does not match the view (e.g. an async view under WSGI, or a traditional sync view under ASGI), Django must emulate t ...
https://man.mtool.work/django/6.1/topics/async.html
PREV 1 2 3 4 5 6 7 NEXT