... を使います。 インストール redirects アプリをインストールするには、以下の手順に従ってください: django.contrib.sites フレームワークが インストールされていること ... を確認してください。 'django.contrib.redirects' を INSTALLED_APPS 設定に追加します。 MIDDLEWARE 設定に 'django.contrib.redirects.middleware.RedirectFallbackMiddleware' を ... 加、変更、削除方法 admin インターフェイス経由 Django の自動管理インターフェイスを有効にしていれば、管理インデックスページに "Redirects" セクションがあるはずです。システムの他のオブジェクトを編集するように、リダイレクトを編集してください。 Python API 経由 cl ... ... これらのアドオン(具体的には、モデルまたはテンプレートタグを含むアドオン)を使用するには、パッケージ名 (例: 'django.contrib.redirects' ) をあなたの INSTALLED_APPS 設定に追加して、 manage.py migrate を再実行する必要があります。 Django の admin サイト django ... ワーク フラットページ (flatpages) アプリ GeoDjango django.contrib.humanize メッセージフレームワーク django.contrib.postgres redirects (リダイレクト)アプリ サイトマップ・フレームワーク "sites" フレームワーク staticfiles アプリ 配信 (syndication) フィード ... ト を参照してください。 postgres PostgreSQL 固有の機能のコレクション。 contrib.postgres のドキュメント を参照してください。 redirects リダイレクトを管理するためのフレームワークです。 redirects のドキュメント を参照してください。 sessions 匿名セッションでデ ... ... er converts redirects to absolute URIs ( #26428 ). Fixed TimeField microseconds round-tripping on MySQL and SQLite ( #26498 ). Prevented makemig ... ... o.contrib.auth.views.login() and i18n ) to redirect the user to an "on success" URL. The security check for these redirects (namely django.utils.http.is_safe_url() ) considered some numeric URLs (e.g. http:999999999 ) "safe" when they shouldn't b ... iously crafted URL to a Django site using the serve() view could redirect to any other domain. The view no longer does any redirects as they don't provide any known, useful functionality. Note, however, that this view has always carried a warning that it ... ... .g. django.contrib.auth.views.login() and i18n ) to redirect the user to an "on success" URL. The security check for these redirects (namely django.utils.http.is_safe_url() ) considered some numeric URLs (e.g. http:999999999 ) "safe" when they shouldn't b ... iously crafted URL to a Django site using the serve() view could redirect to any other domain. The view no longer does any redirects as they don't provide any known, useful functionality. Note, however, that this view has always carried a warning that it ... ... .g. django.contrib.auth.views.login() and i18n ) to redirect the user to an "on success" URL. The security check for these redirects (namely django.utils.http.is_safe_url() ) considered some numeric URLs (e.g. http:999999999 ) "safe" when they shouldn't b ... iously crafted URL to a Django site using the serve() view could redirect to any other domain. The view no longer does any redirects as they don't provide any known, useful functionality. Note, however, that this view has always carried a warning that it ... ... they were found to have similar issues. Malformed redirect URLs from user input not correctly validated The validation for redirects did not correctly validate some malformed URLs, which are accepted by some browsers. This allows a user to be redirected t ... .login() , django.contrib.comments , and i18n ) to redirect the user to an "on success" URL. The security checks for these redirects (namely django.utils.http.is_safe_url() ) did not correctly validate some malformed URLs, such as http:\\\\\\djangoproject ... ... they were found to have similar issues. Malformed redirect URLs from user input not correctly validated The validation for redirects did not correctly validate some malformed URLs, which are accepted by some browsers. This allows a user to be redirected t ... .login() , django.contrib.comments , and i18n ) to redirect the user to an "on success" URL. The security checks for these redirects (namely django.utils.http.is_safe_url() ) did not correctly validate some malformed URLs, such as http:\\\\\\djangoproject ... ... re found to have similar issues. Issue: Malformed redirect URLs from user input not correctly validated The validation for redirects did not correctly validate some malformed URLs, which are accepted by some browsers. This allows a user to be redirected t ... .login() , django.contrib.comments , and i18n ) to redirect the user to an "on success" URL. The security checks for these redirects (namely django.utils.http.is_safe_url() ) did not correctly validate some malformed URLs, such as http:\\\\\\djangoproject ... ... write {{ foo|join:"&" }} . The previous behavior was a bug and contrary to what was documented and expected. Permanent redirects and the redirect_to() generic view Django 1.1 adds a permanent argument to the django.views.generic.simple.redirect_to() v ... small -- but highly useful -- improvements have been made to the test client: The test Client now can automatically follow redirects with the follow argument to Client.get() and Client.post() . This makes testing views that issue redirects simpler. It's n ... vironment variable used for this purpose. There's a new django.shortcuts.redirect() function that makes it easier to issue redirects given an object, a view name, or a URL. The postgresql_psycopg2 backend now supports native PostgreSQL autocommit . This i ... 2026年10月08日