per page, with , order by , clip by
Results of 1 - 3 of about 3 for CurrentSiteManager (0.007 sec.)
"sites" フレームワーク 11924
"sites" フレームワーク Django にはオプションで "sites" フレームワークが付属しています。これは、オブジェクトや機能を特定の Web サイトに関連付けるためのフックで、 Django で動くサイトのドメイン名や "冗長な" 名前を保持する場所です。 1 つの Djan ... Force a database query for the third call. Site . objects . clear_cache () current_site = Site . objects . get_current () CurrentSiteManager class managers. CurrentSiteManager もし Site があなたのアプリケーションで重要な役割を果たしているなら、モデルに CurrentSit ... であり、そのクエリが自動的に現在の Site に関連付けられたオブジェクトのみを含むようにフィルタリングされます。 必須 SITE_ID CurrentSiteManager は、設定ファイルに SITE_ID 設定が定義されている場合にのみ使用可能です。 CurrentSiteManager を明示的にモデルに追加することで ... 使用します。例えば: from django.contrib.sites.models import Site from django.contrib.sites.managers import CurrentSiteManager from django.db import models class Photo ( models . Model ): photo = models . FileField ( upload_to = "photos" ) photograp ...
https://man.mtool.work/django/6.1/ref/contrib/sites.html
システムチェックフレームワーク 8147
システムチェックフレームワーク システムチェックフレームワークは、Django プロジェクトを検証するための静的チェックのセットです。一般的な問題を検出し、それらを修正するヒントを提供します。このフレームワークは拡張性があり、独自のチェックを簡単に ... ture> を使用するために、 'django.contrib.postgres' は INSTALLED_APPS に含まれている必要があります。 sites 以下のチェックは CurrentSiteManager を使用しているモデルに対して行われます: sites.E001 : CurrentSiteManager は <field name> というフィールドを見つけられません ... でした。 sites.E002 : CurrentSiteManager は、外部キーや多対多のフィールドではないため、 <field> を使用できません。 以下のチェックは、 django.contrib.sites が正しく ...
https://man.mtool.work/django/6.1/ref/checks.html
索引 7813
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... b.gis.db.models.functions のクラス) managed (Options の属性) Manager (django.db.models のクラス) MANAGERS setting managers.CurrentSiteManager (django.contrib.sites のクラス) manifest_hash (storage.ManifestStaticFilesStorage の属性) manifest_strict (storage.Manifes ...
https://man.mtool.work/django/6.1/genindex.html
PREV 1 NEXT