... ンテンツフィールドは空のままにしておくこともできます。カスタムテンプレートにコンテンツを入れる場合に便利です。 インストール flatpages アプリをインストールするには、以下の手順に従ってください: もし設定にまだ含まれていない場合は、 'django.contrib.sites' をあ ... sites フレームワークを使用している場合は、別のサイトの ID になる可能性があります) 。 INSTALLED_APPS 設定に 'django.contrib.flatpages' を追加してください。 そして、下記のいずれかを行います: URLconf にエントリを追加します。例えば、次のようにします: urlpatte ... rns = [ path ( "pages/" , include ( "django.contrib.flatpages.urls" )), ] または: django.contrib.flatpages.middleware.FlatpageFallbackMiddleware' を MIDDLEWARE 設定に追加します。 コマン ... ... igrate を再実行する必要があります。 Django の admin サイト django.contrib.auth contenttypes フレームワーク フラットページ (flatpages) アプリ GeoDjango django.contrib.humanize メッセージフレームワーク django.contrib.postgres redirects (リダイレクト)アプリ ... クで、インストールされた Django モデルはそれぞれ別のコンテンツタイプです。 contenttypes のドキュメント を参照してください。 flatpages データベース内で「フラットな」HTMLコンテンツを管理するためのフレームワークです。 flatpages のドキュメント を参照してくださ ... ... enttypes.fields module django.contrib.contenttypes.forms module django.contrib.contenttypes.prefetch module django.contrib.flatpages module django.contrib.gis module django.contrib.gis.admin module django.contrib.gis.db.backends module django.contrib.gis. ... estCase の属性) fk_name (InlineModelAdmin の属性) flags (RegexValidator の属性) FlatpageFallbackMiddleware (django.contrib.flatpages.middleware のクラス) FlatPageSitemap (django.contrib.flatpages.sitemaps のクラス) flatten() (Context のメソッド) FloatFiel ... ) (Options のメソッド) get_fieldsets() (ModelAdmin のメソッド) get_fixed_timezone() (django.utils.timezone モジュール) get_flatpages template tag get_FOO_display() (Model のメソッド) get_for_id() (ContentTypeManager のメソッド) get_for_model() (ContentTyp ... ... n django.contrib.contenttypes.fields django.contrib.contenttypes.forms django.contrib.contenttypes.prefetch django.contrib.flatpages A framework for managing "flat" HTML content in a database. django.contrib.gis Geographic Information System (GIS) extensi ... ... 使用方法 制限事項 contrib パッケージ Django の admin サイト django.contrib.auth contenttypes フレームワーク フラットページ (flatpages) アプリ GeoDjango django.contrib.humanize メッセージフレームワーク django.contrib.postgres redirects (リダイレクト)アプリ ... フレームワーク "sites" フレームワーク staticfiles アプリ 配信 (syndication) フィード フレームワーク admin auth contenttypes flatpages gis humanize messages postgres redirects sessions sites sitemaps syndication コンテンツセキュリティポリシー 概要 設定 Poli ... ... your app works well with Django 1.4 and you won't have to roll back to 1.3, enable the new password hashes. django.contrib.flatpages Starting in 1.4, the FlatpageFallbackMiddleware only adds a trailing slash and redirects if the resulting URL refers to an ... ubsequently raise a 404. Requesting /notaflatpageoravalidurl now will immediately raise a 404. Also, redirects returned by flatpages are now permanent (with 301 status code), to match the behavior of CommonMiddleware . Serialization of datetime and time A ... ... Django フレームワークの、その他の主要機能について学びましょう。 条件付きコンテンツ処理 コンテンツタイプと汎用リレーション flatpages: フラットページコンテンツの管理 リクエストのリダイレクト イベントのシグナル システムチェックフレームワーク サイトフレームワ ... ... aps }, name = "django.contrib.sitemaps.views.sitemap" , ), ] これにより、自動的に sitemap.xml ファイルが生成され、 sitemap-flatpages.xml と sitemap-blog.xml の両方が参照されます。 Sitemap クラスと sitemaps 辞書は全く変わりません。 If all sitemaps have a l ... ... レクトオブジェクトが特定のサイトに関連付けられています。Django がリダイレクトを検索する際には、現在のサイトも考慮されます。 flatpages フレームワーク で、各フラットページは特定のサイトに関連付けられています。フラットページを作成するときには、その Site を指定 ... ... emoved. The default value of the RedirectView.permanent attribute will change from True to False . django.contrib.sitemaps.FlatPageSitemap will be removed in favor of django.contrib.flatpages.sitemaps.FlatPageSitemap . Private API django.test.utils.TestTe ... 2026年10月08日