... する model のフィールド名のタプルまたはリスト。 fields または exclude のいずれかの設定が必要です。どちらも設定されない場合は ImproperlyConfigured 例外が送出されます。 exclude を設定して fields を設定しない場合 exclude で指定していないすべてのモデルフィールドをフォーム ... 指定してもフォームに含まれることはありません。 fields または exclude のいずれかの設定が必要です。どちらも設定されない場合は ImproperlyConfigured 例外が送出されます。 formfield_callback ModelFormOptions. formfield_callback モデルフィールドを受け取り django.forms.Field ... て、明示的に提供する必要があります。詳しくは 使うフィールドを選択する を参照してください。使うフィールドの定義を省略すると、 ImproperlyConfigured 例外を引き起こします。 modelformset_factory modelformset_factory ( model , form = ModelForm , formfield_callback = None , ... ... on MiddlewareNotUsed [ソース] MiddlewareNotUsed 例外は、サーバーの設定の中でミドルウェアが使用されなかった時に発生します。 ImproperlyConfigured exception ImproperlyConfigured [ソース] ImproperlyConfigured 例外は、Django が何らかの点で不適切に設定されている場合に発生 ... ... ブジェクトのタイプを記述して model と queryset 属性にアクセスできます。 fields 属性と form_class 属性の両方を指定した場合、 ImproperlyConfigured 例外が発生します。 ミックスイン django.views.generic.edit.FormMixin django.views.generic.detail.SingleObjectMixin メソッド ... 同じように解釈されます。 フォームクラスを自動生成する場合、この属性は必須です ( model を使用するなど)。この属性を省略すると ImproperlyConfigured 例外が発生します。 success_url フォームが正常に処理されたときにリダイレクトするURL。 success_url は辞書文字列のフォーマット ... ... for GDAL 2.1 and 2.0, and removed detection for unsupported versions 1.7 and 1.8 ( #28181 ). Changed contrib.gis to raise ImproperlyConfigured rather than GDALException if gdal isn't installed, to allow third-party apps to catch that exception ( #28178 ). Fixed dja ... ... ields 属性と同じように動作します。別の方法でフォームクラスを定義しない限り、この属性は必須であり、属性がない場合、ビューは ImproperlyConfigured 例外を発生させます。 fields 属性と form_class 属性の両方を指定した場合、 ImproperlyConfigured 例外が発生します。 最後に、こ ... ... 性 template_name 文字列で指定された使用するテンプレートの完全な名前。 template_name を定義しないと、 django.core.exceptions.ImproperlyConfigured 例外が発生します。 template_engine テンプレートを読み込む際に使用するテンプレートエンジンの NAME です。 template_engine は ... ... 同期的なものか、 async def を使用した非同期的なものでなければなりません。 def と async def が混在している場合、 as_view() で ImproperlyConfigured 例外が発生します。 Django は自動的に非同期ビューを検出し、非同期コンテキストで実行します。Django の非同期サポートや、非同期 ... ... 関数としてマークします。非同期ハンドラ ( async def ) と同期ハンドラ ( def ) の両方が1つのビュークラスで定義されている場合、 ImproperlyConfigured 例外が発生します。 setup ( request , * args , ** kwargs ) dispatch() の前に、ビューの初期化のための重要な処理を実行します。 ... ... rather than raising CommandError . django.contrib.staticfiles.views.serve() will now raise an Http404 exception instead of ImproperlyConfigured when DEBUG is False . This change removes the need to conditionally add the view to your root URLconf, which in turn makes ... ils.module_loading.import_by_path function catches AttributeError , ImportError , and ValueError exceptions, and re-raises ImproperlyConfigured . Such exception masking makes it needlessly hard to diagnose circular import problems, because it makes it look like the ... ... dingDeprecationWarning . In Django 1.4 this same condition will raise DeprecationWarning , and in Django 1.5 will raise an ImproperlyConfigured exception. Everything else Django 1.1 and 1.2 added lots of big ticket items to Django, like multiple-database support, mo ... 2026年10月08日