per page, with , order by , clip by
Results of 1 - 10 of about 69 for redirect (0.002 sec.)
redirects (リダイレクト)アプリ 13136
redirects (リダイレクト)アプリ Django にはオプションで redirects (リダイレクト) アプリケーションが付属しています。リダイレクトをデータベースに保存し、リダイレクトを処理します。デフォルトでは HTTP 応答ステータスコード 301 Moved Permanently ... を使います。 インストール redirects アプリをインストールするには、以下の手順に従ってください: django.contrib.sites フレームワークが インストールされていること ... を確認してください。 'django.contrib.redirects' を INSTALLED_APPS 設定に追加します。 MIDDLEWARE 設定に 'django.contrib.redirects.middleware.RedirectFallbackMiddleware' ... を追加します。 コマンド manage.py migrate を実行します。 しくみ manage.py migrate はデータベースに django_redirect テーブルを作成します。これは、 site_id 、 old_path 、および new_path フィールドを持つルックアップテーブルです。 RedirectFa ...
https://man.mtool.work/django/6.1/ref/contrib/redirects.html
Django 1.8.18 リリースノート 10477
Django 1.8.18 リリースノート April 4, 2017 Django 1.8.18 fixes two security issues in 1.8.17. CVE-2017-7233: Open redirect and possible XSS attack via user-supplied numeric redirect URLs Django relies on user input in some cases (e.g. djang ... 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() ) consider ... ic URLs (e.g. http:999999999 ) "safe" when they shouldn't be. Also, if a developer relies on is_safe_url() to provide safe redirect targets and puts such a URL into a link, they could suffer from an XSS attack. CVE-2017-7234: Open redirect vulnerability ... in django.views.static.serve() A maliciously 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, ho ...
https://man.mtool.work/django/6.1/releases/1.8.18.html
Django のショートカット関数 10477
Django のショートカット関数 django.shortcuts パッケージは、MVC の複数のレベルにまたがるヘルパー関数とクラスを集めたものです。言い換えれば、これらの関数やクラスは、便宜上、控えめな結合を取り入れます。 render() render ( request , template_nam ... x.html" ) c = { "foo" : "bar" } return HttpResponse ( t . render ( c , request ), content_type = "application/xhtml+xml" ) redirect() redirect ( to , * args , permanent = False , preserve_request = False , max_length = MAX_URL_REDIRECT_LENGTH , ** kwargs ... ) [ソース] 渡された引数に対して、 適切な URLへの HttpResponseRedirect を返します。 引数には以下が含まれます: A model: the model's get_absolute_url() function will be called. ビュー名(引数を渡 ... e 307 True True 308 An optional max_length keyword argument can be provided to override the maximum allowed length for the redirect URL. Set it to None to disable the length check. Changed in Django 6.1: max_length was added. 例 redirect() 関数の使い方は ...
https://man.mtool.work/django/6.1/topics/http/shortcuts.html
Django 1.10.7 リリースノート 10237
Django 1.10.7 リリースノート April 4, 2017 Django 1.10.7 fixes two security issues and a bug in 1.10.6. CVE-2017-7233: Open redirect and possible XSS attack via user-supplied numeric redirect URLs Django relies on user input in some cases ( ... e.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() ) consider ... ic URLs (e.g. http:999999999 ) "safe" when they shouldn't be. Also, if a developer relies on is_safe_url() to provide safe redirect targets and puts such a URL into a link, they could suffer from an XSS attack. CVE-2017-7234: Open redirect vulnerability ... in django.views.static.serve() A maliciously 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, ho ...
https://man.mtool.work/django/6.1/releases/1.10.7.html
Django 1.9.13 リリースノート 9983
Django 1.9.13 リリースノート April 4, 2017 Django 1.9.13 では、1.9.12 に存在した2つのセキュリティの問題と1つのバグを修正しました。今回のリリースが、1.9.x シリーズの最終リリースとなります。 CVE-2017-7233: Open redirect and possible XSS attac ... k via user-supplied numeric redirect URLs Django relies on user input in some cases (e.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 ... be. Also, if a developer relies on is_safe_url() to provide safe redirect targets and puts such a URL into a link, they could suffer from an XSS attack. CVE-2017-7234: Open redirect vulnerability ...
https://man.mtool.work/django/6.1/releases/1.9.13.html
Djangoの認証システムを使用する 9686
Djangoの認証システムを使用する このドキュメントでは、デフォルト設定でのDjangoの認証システムの使用方法を説明します。この設定は、タスクの適切な範囲を管理することで、最も一般的なプロジェクトのニーズにかなうよう徐々に発展してきました。そして、パ ... er = authenticate ( request , username = username , password = password ) if user is not None : login ( request , user ) # Redirect to a success page. ... else : # Return an 'invalid login' error message. ... 認証バックエンドの選択 ユーザーがログインする ... and has no return value. Example: from django.contrib.auth import logout def logout_view ( request ): logout ( request ) # Redirect to a success page. Note that logout() doesn't throw any errors if the user wasn't logged in. When you call logout() , the ... の確認と共にログインページへのリダイレクトを利用する事です: from django.conf import settings from django.shortcuts import redirect def my_view ( request ): if not request . user . is_authenticated : return redirect ( f " { settings . LOGIN_URL } ?next= ...
https://man.mtool.work/django/6.1/topics/auth/default.html
Django 1.3.5 リリースノート 9389
Django 1.3.5 リリースノート December 10, 2012 Django 1.3.5 addresses two security issues present in previous Django releases in the 1.3 series. Please be aware that this security release is slightly different from previous ones. Both issues ... numeric. Any deviation from this will now be rejected, raising the exception django.core.exceptions.SuspiciousOperation . Redirect poisoning Also following up on a previous issue: in July of this year, we made changes to Django's HTTP redirect classes, ... performing additional validation of the scheme of the URL to redirect to (since, both within Django's own supplied applications and many third-party applications, accepting a user-supplied red ... is either relative, or if absolute matches the supplied hostname. This function is intended for use whenever user-supplied redirect targets are accepted, to ensure that such redirects cannot lead to arbitrary third-party sites. 2. All of Django's own bui ...
https://man.mtool.work/django/6.1/releases/1.3.5.html
Django 1.4.3 リリースノート 9389
Django 1.4.3 リリースノート December 10, 2012 Django 1.4.3 addresses two security issues present in previous Django releases in the 1.4 series. Please be aware that this security release is slightly different from previous ones. Both issues ... numeric. Any deviation from this will now be rejected, raising the exception django.core.exceptions.SuspiciousOperation . Redirect poisoning Also following up on a previous issue: in July of this year, we made changes to Django's HTTP redirect classes, ... performing additional validation of the scheme of the URL to redirect to (since, both within Django's own supplied applications and many third-party applications, accepting a user-supplied red ... is either relative, or if absolute matches the supplied hostname. This function is intended for use whenever user-supplied redirect targets are accepted, to ensure that such redirects cannot lead to arbitrary third-party sites. 2. All of Django's own bui ...
https://man.mtool.work/django/6.1/releases/1.4.3.html
ミドルウェア 8356
ミドルウェア このドキュメントでは、Djangoに付属するすべてのミドルウェアコンポーネントについて説明します。それらの使用方法や独自のミドルウェアの作成方法についての情報は、 ミドルウェア使用ガイド を参照してください。 使用できる middleware Cach ... されます。詳しくは キャッシュのドキュメント を参照してください。 Common middleware class CommonMiddleware [ソース] response_redirect_class デフォルトは HttpResponsePermanentRedirect です。ミドルウェアが発行するリダイレクトをカスタマイズするには、 CommonMi ... with individual views using the conditional_page() decorator. Locale ミドルウェア class LocaleMiddleware [ソース] response_redirect_class デフォルトは HttpResponseRedirect です。 LocaleMiddleware をサブクラス化して属性をオーバーライドし、ミドルウェアによ ... PE_NOSNIFF SECURE_CROSS_ORIGIN_OPENER_POLICY SECURE_HSTS_INCLUDE_SUBDOMAINS SECURE_HSTS_PRELOAD SECURE_HSTS_SECONDS SECURE_REDIRECT_EXEMPT SECURE_REFERRER_POLICY SECURE_SSL_HOST SECURE_SSL_REDIRECT HTTP Strict Transport Security HTTPSでのみアクセスする必 ...
https://man.mtool.work/django/6.1/ref/middleware.html
Django 1.4.20 リリースノート 8173
Django 1.4.20 リリースノート March 18, 2015 Django 1.4.20 fixes one security issue in 1.4.19. Mitigated possible XSS attack via user-supplied redirect URLs Django relies on user input in some cases (e.g. django.contrib.auth.views.login() an ... d i18n ) to redirect the user to an "on success" URL. The security checks for these redirects (namely django.utils.http.is_safe_url() ) accepte ... t there. Browsers we tested also treat URLs prefixed with control characters such as %08//example.com as relative paths so redirection to an unsafe target isn't a problem either. However, if a developer relies on is_safe_url() to provide safe redirect ta ...
https://man.mtool.work/django/6.1/releases/1.4.20.html
PREV 1 2 3 4 5 6 7 NEXT